Web features explorer

Screen orientation

Newly available since 2023-03-27
Tags: api

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. To learn more, see Screen Orientation API at MDN.

Compatibility (view on caniuse.com)