What Is My Screen Orientation?
Your Screen Orientation
Detecting…
- Viewport
- Detecting…
- Device Type
- Detecting…
Check your screen orientation live: portrait or landscape, primary or secondary. Rotate your phone or tablet and watch the result update instantly.
Last updated
Check next
All display toolsHow to use this tool
- Your current orientation is shown in the Live Result box.
- On a phone or tablet, rotate the device. The result changes immediately between portrait and landscape.
- If nothing changes when you rotate, check that rotation lock is turned off (see the troubleshooting section below).
What is it?
Screen orientation describes whether your display is wider than tall (landscape) or taller than wide (portrait). On mobile devices, this updates when you rotate your phone or tablet.
How it works
The tool reads screen.orientation.type from the Screen Orientation API, which returns one of four values: portrait-primary, portrait-secondary (upside down), landscape-primary or landscape-secondary (rotated the other way). If a browser does not support the API, the tool falls back to comparing the window width with its height. It listens for orientation changes, so the result updates as soon as you rotate.
Why this matters
Responsive designs adapt layouts based on orientation. Mobile apps and PWAs use orientation APIs to optimize UI for reading vs. media consumption.
Practical Use Cases
- Testing responsive layouts that change between portrait and landscape.
- Checking that a web game or video player handles rotation correctly.
- Finding out why a phone will not rotate (rotation lock is usually the cause).
How to check manually
iPhone and iPad
Swipe down from the top-right corner to open Control Center. If the lock-with-arrow icon is highlighted, Portrait Orientation Lock is on and the screen will not rotate.
Android
Swipe down twice from the top of the screen and look for "Auto-rotate" (or "Portrait") in Quick Settings.
Windows tablets and 2-in-1s
Open Settings → System → Display and check "Rotation lock" and "Display orientation".
Common values
| Label | Value |
|---|---|
| Landscape | landscape-primary |
| Portrait | portrait-primary |
Troubleshooting
- Orientation does not change when I rotate my phone
- Turn off rotation lock in Control Center (iPhone) or Quick Settings (Android). Some apps and in-app browsers also lock orientation.
Frequently asked questions
Why does orientation not change on desktop?
Desktop monitors are typically fixed in landscape. Orientation changes are most noticeable on phones and tablets.
What is the difference between portrait-primary and portrait-secondary?
Primary is the device's natural orientation. Secondary is rotated 180° from it, for example a phone held upside down. Many phones do not rotate to portrait-secondary by default.
Can a website lock screen orientation?
Only in limited cases. The screen.orientation.lock() method works on supported mobile browsers when the page is in fullscreen mode or installed as a web app.
Is a tall desktop monitor reported as portrait?
Yes. If you rotate a monitor 90° in your operating system's display settings, browsers report a portrait orientation.
How do I rotate my screen on Windows?
Open Settings → System → Display and change "Display orientation" to Portrait or Landscape. Some graphics drivers also support Ctrl + Alt + arrow keys.
Explore more diagnostics
Visit the DeviceScope homepage for a complete live dashboard, or browse all display & screen tests.