Web platform 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.

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