That sounds like you’re getting it with FindObjectOfType (which doesn’t find deactivated objects), or GetComponentsInChildren without passing the “include inactive parameter”.
We deal with that situation by having all of our UI in a prefab, and instantiating that prefab on startup. When we instantiate it, we deal with all the references that needs to be dealt with, and then deactivate the parts that we need to deactivate.