Revert "Fix immersive mode"

This reverts commit 47eb10df9a37456b6b5b4cf3733efbefae45594b.