I've never had this problem before 2022.
"By settings to gray" do you mean the fill color?
It seems to be trying to "help me" as I 3D rotate around by ghosting or hiding walls/elements it thinks are blocking my view.
Perhaps I'm finding the new logic to layer, working, and screen plane options confusing? I tried going back to 2021, but now the file is altered in a way that it no longer views correctly there either. It's weird. Because as I turn off other layers, it seems to come back to normal, based on the layer order/visibility.
I feel as though it's setting in 2022 I just do not yet understand.