# Orientation

The `orientation` property in the Progressive Web Application (PWA) manifest dictates the default orientation that the web application will be displayed in. The allowed values are:

* `portrait-primary`: The orientation is in the primary portrait mode.
* `landscape-primary`: The orientation is in the primary landscape mode.
* `portrait`: Either of the portrait orientations.
* `landscape`: Either of the landscape orientations.
* `any`: Any orientation.

Setting the orientation helps ensure that the PWA looks good and functions well on mobile devices.

Example:

{% code title="/config/packages/pwa.yaml" lineNumbers="true" %}

```yaml
pwa:
    manifest:
        enabled: true
        orientation: "landscape"
```

{% endcode %}

With the above manifest configuration, the application will default to `landscape` orientation when launched from a device's home screen.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pwa.spomky-labs.com/1.2.x/the-manifest/application-information/orientation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
