Screen Orientation API
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2023.
* Some parts of this feature may have varying levels of support.
The Screen Orientation API provides information about the orientation of the screen.