How can you lock a dashboard in portrait mode?

Heya :wave:,

Does anyone know a way to prevent the HA app from changing from portrait to landscape mode when the phone’s orientation changes? I’ve built a mobile home assistant dashboard specifically for portrait mode and want to block it changing orientation and laying out wonky.

I don’t want to force orientation lock on the phone to accomplish this; I’m hoping there is someway to define a portrait state in YAML.

Any ideas?

Is it iOS or Android?

iOS. But a solution supporting both would be great.