/Engine/Plugins/Runtime/XRBase/Source/XRBase/Public/StereoLayerManager.h
If pushing and popping layer state is supported, the visibility of the background layer should be part of the saved state.
virtual void HideBackgroundLayer()