Device orientation & layout

Make your app work in both portrait and landscape orientations.

On this page

Overview

What you need to do

Make sure your app’s content and functionality remain accessible and usable when the device is rotated between portrait and landscape orientations. Users need to be able to rotate their device and continue using the app without losing content or functionality.

Meeting the Web Accessibility Standard

When content works in both portrait and landscape orientations (unless a specific orientation is essential), it meets WCAG 2 Success Criterion 1.3.4 Orientation (Level AA).

Why this matters

Many users with motor disabilities mount their devices in fixed positions or can only hold devices in specific orientations. Others use assistive technologies that work better in particular orientations. Some users prefer the inherent text resizing and longer line lengths in landscape mode. Restricting orientation can prevent users from reading text more easily, or in some cases accessing your app’s functionality entirely.

When this applies

When you must support both orientations:

When orientation restrictions may be acceptable:

When to always support both:

Design

Checklist for accessible orientation design 

Design resources 

For design guidance on device orientation and layout for each platform, refer to:

Development

Here are the key techniques and code examples for implementing accessible orientation support in mobile apps.

iOS implementation

For technical guidance on orientation support, read:

For complete guides on iOS accessibility from Apple Developer Documentation, read:

Android implementation

Testing

Quick test 

These quick steps will help you verify that app works properly when users rotate their devices in any situation.

  1. Rotate your device — compare portrait and landscape while using the app.
  2. Check all screens — does content remain accessible in both orientations?
  3. Check text readability — is text still readable when orientation changes?
  4. Test critical functions — do essential features work in both orientations?
  5. Test form inputs — can you complete forms in both orientations?
  6. Verify navigation — do menus and buttons work in both orientations?
  7. Test with screen reader — does VoiceOver/TalkBack work in both orientations?
  8. Check element focus — is focus retained when switching orientations?

Using a simulator or emulator 

If you can run the app in simulator or emulator, you can test every screen in both orientations: