# Screen Orientation API

**URL:** <https://forum.bubble.io/t/screen-orientation-api/221408>\
**Category:** APIs\
**Created:** [August 24, 2022, 6:43pm UTC](https://forum.bubble.io/t/screen-orientation-api/221408 "2022-08-24T18:43:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![equipe](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@equipe](https://forum.bubble.io/u/equipe)\
**Post date:** [August 24, 2022, 6:43pm UTC](https://forum.bubble.io/t/screen-orientation-api/221408/1 "2022-08-24T18:43:45Z")

</div>

Hi everyone,

I want to lock orientation to portrait with this api [Screen Orientation API - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Screen_Orientation_API)

I tried with a BDK Native Apps plugin and it work only on their app preview. With JS i couldnt make it work.

---

<div class="post-metadata">

**Author:** ![lantzgould](https://avatars.discourse-cdn.com/v4/letter/l/ecccb3/32.png) [@lantzgould](https://forum.bubble.io/u/lantzgould)\
**Post date:** [August 24, 2022, 6:49pm UTC](https://forum.bubble.io/t/screen-orientation-api/221408/2 "2022-08-24T18:49:18Z")

</div>

Maybe this

> [@\[RELEASED\] Force device orientation plugin](http://forum.bubble.io/t/released-force-device-orientation-plugin/69796):
>
> Hi All. I have released a new plugin to force device orientation (Portrait or Landscape) Script use two groups (one for the background and one for the message). So you can design how this look like when the user doesn’t use the orientation you want. Demo page and instructions: Editor: If you have any issue, please reach me in PM. Thanks!

---

<div class="post-metadata">

**Author:** ![equipe](https://avatars.discourse-cdn.com/v4/letter/e/a9adbd/32.png) [@equipe](https://forum.bubble.io/u/equipe)\
**Post date:** [August 25, 2022, 1:17pm UTC](https://forum.bubble.io/t/screen-orientation-api/221408/3 "2022-08-25T13:17:10Z")

</div>

unfortunately this plugin is a message, i want to force without user intentions
