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 Widely Available (since 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
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist