Screen orientation
The screen.orientation
API gets information about the orientation of the viewport, such as landscape or portrait. With this API, you can adapt an application's layout or behavior in response to changes in orientation.
Status
Baseline Newly Available (since 2023-03-27)
This feature is expected to reach Baseline Widely Available status on: 2025-09-27
MDN documentation
Specifications
- Screen Orientation, from Web Applications Working Group (W3C).
Browser support (view on caniuse.com)
- Chrome 38 Released on 2014-10-07
- Chrome Android 39 Released on 2014-11-12
- Edge 79 Released on 2020-01-15
- Firefox 43 Released on 2015-12-15
- Firefox for Android 43 Released on 2015-12-15
- Safari 16.4 Released on 2023-03-27
- Safari on iOS 16.4 Released on 2023-03-27
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist