Limited Availability
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 (not yet Baseline). Latest engine implementation shipped on Oct 14, 2025.
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
MDN Browser Compat Data Keys:
id: screen-orientation-lock