BASELINE NowYouCanUse.com
Limited Availability
id: screen-orientation-lock

Screen orientation lock

The screen.orientation.lock() method prevents changes to the screen orientation, typically in fullscreen applications such as games. For example, while locked, rotating a phone to the side won't change the screen orientation from landscape to portrait.
Baseline Status: This feature is currently Limited and is missing in at least one major browser engine.
Desktop Browser Engine Support
Google Chrome
Unsupported
Mozilla Firefox
144
Supported
Apple Safari
Unsupported
Microsoft Edge
Unsupported
Mobile Browser Engine Support
Chrome Android
38
Firefox Android
144
Safari iOS
Specifications and References