Skip to content

Screen orientation lock #46

Open
Open

Description

@github-actions

This GitHub issue is for collecting web developer signals for Screen orientation lock.

The screen.orientation.lock() method prevents changes to the screen orientation, typically in fullscreen applications such as games. For example, while locked, rotating a phone to the side won't change the screen orientation from landscape to portrait.

Browser support

chromeunavailable edgeunavailable firefoxavailable safariunavailable
  • Chrome: not supported
  • Chrome Android 38 (Oct 8, 2014)
  • Edge: not supported
  • Firefox 144 (Oct 14, 2025)
  • Firefox for Android 144 (Oct 14, 2025)
  • Safari: not supported
  • Safari on iOS: not supported

Give us feedback

If you're pressed for time, but you want this feature to be available in all browsers, please give this issue a thumbs up 👍 reaction.

However, a much better guide for us is to know how you'd use this feature, and what you're having to do in the meantime. This helps us judge the priority versus other features.

Copy the template below in a comment, and add the details that matter to you.

## What I want to do with this feature

<!-- Add your specific use-cases, even if they seem obvious to you. -->

## What I'm having to do in the meantime

<!--
Are you having to use another feature instead, a polyfill, or is it blocking you completely?
Why are the alternatives worse than using this feature?
-->

All comments are expected to adhere to the Code of Conduct.

Learn more

You can learn more about this feature here:

Activity

  1. alibergcherrihost commented on Jun 19, 2026

    @alibergcherrihost

    What I want to do with this feature

    Lock the screen orientation to rotate only specific UI components dynamically, rather than letting the native OS rotate the entire application viewport.

    What I'm having to do in the meantime

    Forced to rely on platform-specific native APIs to handle orientation locks, rather than using a unified web standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions