Any way to stop Unity from making all the objects in my scene visible and collapsed after Build?

As the title says, when I build my project, after finish every object in the build is reset to visible and collapsed. I have certain objects non-visible for a reason, and I hope I can keep them that way. Thanks for any help.

bump

bump

bump