Why it matters
Users rotate their phones all the time: to watch a video, to see a wide photo, to type on a bigger keyboard, or simply because they put the phone down on a table. They also use many different screens: a small iPhone SE, a huge Pro Max, an iPad, a foldable that turns from phone to tablet mid-session, or a split screen next to another app.
Every one of these changes the space the app has. Two kinds of bugs appear:
- Layout bugs: content hidden behind the notch or home indicatorHome indicatorThe bar at the bottom of iPhones without a home button; the area around it belongs to the system's go-home gesture.Open in glossary →, buttons pushed off screen, text stretched into unreadable lines, dialogs cut off.
- State bugs: on Android, rotation re-creates the screen. Anything the app didn’t save (a half-filled form, a scroll position, a playing video) is gone. This is a classic state persistenceState persistenceWhether the app remembers what the user did after navigating away, rotating, or restarting.Open in glossary → bug.
Portrait, landscape and rotation lock
OrientationOrientationWhether the device is held upright (portrait) or sideways (landscape).Open in glossary → is simply how the user holds the device: portrait (upright) or landscape (sideways). What the app does about it depends on three settings:
| Setting | Who controls it | What it does |
|---|---|---|
| Rotation lock / Auto-rotate off | The user (iOS Control Center, Android Quick Settings) | The screen stays in portrait no matter how the phone is held. Android shows a small rotate button in the navigation bar so users can rotate once. Landscape-only apps (some games, video players) still open in landscape |
| Supported orientations | The app (the developers set it in the app’s configuration) | Many phone apps are portrait only: banking, food delivery, social apps. Rotating the phone does nothing in those apps |
| Upside down | The app and OS | Face ID iPhones don’t support upside-down portrait; many Android apps don’t either. Tablets usually support all four orientations |
Check this part
Which two kinds of bugs appear when the screen space changes?
A banking app is portrait only. What happens on an Android 16 tablet when the app targets Android 16?