Screen Orientation Lock
Screen orientation lock is a setting or function that keeps a device's display fixed in a single orientation, such as portrait or landscape, so it does not rotate when the device is physically turned. Users can typically enable this on their own devices, for example through the Control Center on an iPhone or a rotation setting on Android. It can also be applied by a website or app, which may fix the display to a specific orientation for its content.
Screen orientation lock refers to both a user-controlled device setting and a programmatic web capability that constrains the display to a particular orientation. On the web platform, the Screen Orientation API (W3C) defines an OrientationLockType and a ScreenOrientation.lock() method that locks the containing document's orientation to a specified value, preventing automatic reorientation on device rotation. At the operating-system level, users can independently enable orientation lock (for example, the Lock Rotation control on iOS or comparable Android settings and utilities) to override an application's preferred orientation. From an accessibility perspective, developers should be cautious about programmatically forcing a single orientation, since restricting content to one orientation can create barriers for users who rely on a fixed device orientation, such as those using a mounted wheelchair device. Note that this entry describes technical behavior and is not legal advice; specific conformance obligations depend on the applicable standard and jurisdiction.
Why it matters
Screen orientation lock matters in accessibility because the orientation a user needs is not always the orientation a website or app prefers. Some people rely on a fixed device orientation for physical reasons, for example when a device is mounted to a wheelchair in a single position. If content is programmatically constrained to only portrait or only landscape, those users may be unable to rotate their device to a usable position, effectively locking them out of the content or forcing an awkward viewing angle.
The tension arises from two competing controls. A user can enable orientation lock at the operating-system level to keep the display fixed the way they need it, but a website or app can also use the web platform's Screen Orientation API to force its own preferred orientation. When developers force a single orientation without a functional reason, they can override the accommodation a user has set up for themselves. For this reason, developers should generally avoid restricting content to one orientation unless the orientation is essential to the content's function.
This entry describes device features and technical behavior rather than a specific legal obligation. Whether restricting orientation creates a compliance problem depends on the applicable standard and jurisdiction, and readers with legal questions should consult qualified counsel and review current requirements.
Who it's relevant to
Inside Screen Orientation Lock
Common questions
Answers to the questions practitioners most commonly ask about Screen Orientation Lock.