# display manifest member

> The display member picks how much browser UI an installed web app keeps: fullscreen, standalone, minimal-ui, or browser, on a fixed fallback chain.

The `display` manifest member chooses how much of the browser's own UI an installed web app keeps when it launches.
Its four values sit on a fixed fallback chain, `fullscreen` → `standalone` → `minimal-ui` →
`browser`, so a mode the platform does not offer degrades to the next one down without any
author intervention.

Chrome 39 on Android and Chrome 73 on desktop apply the member to installed apps, as do
Edge 79 and Samsung Internet 4.0. Safari 11.3 on iOS also applies it; Safari 17 on macOS applies it to Dock apps (BCD
`manifests.webapp.display`). Firefox 157 on desktop installs no web apps from the manifest, so the
value has no consumer there. The modes `window-controls-overlay` and `tabbed` sit outside the chain and
require `display_override`; `display` cannot request them.

## Member

| Property | Value |
|---|---|
| Type | String: `fullscreen`, `standalone`, `minimal-ui`, or `browser`. |
| Default | `browser`. An absent member and an unrecognized value both resolve to `browser`; Chromium logs `unknown 'display' value ignored.` for the latter. |
| Example | `"standalone"`. |

What each value removes, from most to least:

- `fullscreen` takes the whole screen, including the OS status bar where the platform allows.
  On Android the app can still be left with the system back gesture.
- `standalone` opens a dedicated window with no address bar and no tab strip but keeps OS
  chrome such as the status bar and the window title bar.
- `minimal-ui` is `standalone` plus a minimal set of navigation controls; which controls
  appear is left to the browser (MDN lists back and forward navigation plus reload as typical). Safari on
  iOS maps the value to `standalone` instead (BCD note for Safari iOS).
- `browser` opens in a conventional browser tab or new window, following the platform's convention for opening links. It does not meet Chromium's installability criteria: the
  installability check reports `Manifest 'display' property must be one of 'standalone',
  'fullscreen', or 'minimal-ui'`, so Chromium does not promote installation (no automatic
  install prompt), unless a `display_override` entry supplies an app-like mode first. web.dev
  notes that users can still install an app that fails these criteria.

The chain only runs downward. Request `fullscreen` and a platform without a fullscreen app
window gives you `standalone`, then `minimal-ui`, then `browser`; you set the highest mode you
want and nothing else. `display` governs in-scope pages only: a navigation outside `scope`
brings back the address bar (Chrome) or an in-app banner (Safari iOS 16.4) whatever the mode.

:::caution
Chromium's [`installable_logging.cc`](https://chromium.googlesource.com/chromium/src/+/main/components/webapps/browser/installable/installable_logging.cc) defines the installability error `Manifest 'display' property must be one of 'standalone', 'fullscreen', or 'minimal-ui'`, and DevTools lists installability errors in the **Installability** section of the manifest view ([`AppManifestView.ts`](https://github.com/ChromeDevTools/devtools-frontend/blob/main/front_end/panels/application/AppManifestView.ts)). Chrome's [install criteria](https://web.dev/articles/install-criteria) require `display` to be `fullscreen`, `standalone`, `minimal-ui`, or `window-controls-overlay`, so a manifest with `"display": "browser"` does not meet them.
:::

## Examples

A game can request the whole screen. If the platform refuses, the chain falls back to
`standalone` and the game still runs without an address bar. Desktop Chrome gives installed
apps a window.

### Requesting fullscreen for a game with a standalone fallback

```json
{
  "name": "Orbit",
  "start_url": "/play/",
  "scope": "/play/",
  "display": "fullscreen",
  "orientation": "landscape",
  "background_color": "#000000"
}
```

On Android, `fullscreen` can be paired with `orientation`. The specification leaves the
permitted combinations of `orientation` and display mode to the implementation, and gives
`browser` as a mode where a user agent might decline to change the orientation.

### Detecting the resolved mode at runtime

The browser does not expose the manifest's requested value, but it does expose the mode it
resolved, through the `display-mode` media feature (MDN, `@media (display-mode)`). Use it to
hide a web-only header in an app window, and keep the header when the query matches nothing,
which is the branch a browser tab takes.

```js
const modes = ['window-controls-overlay', 'fullscreen', 'standalone', 'minimal-ui', 'browser'];

function resolvedDisplayMode() {
  const hit = modes.find((m) => matchMedia(`(display-mode: ${m})`).matches);
  if (hit) return hit;
  // Safari on iOS before 13 exposes the app window through navigator.standalone only.
  return navigator.standalone === true ? 'standalone' : 'browser';
}

document.documentElement.dataset.display = resolvedDisplayMode();
```

`matchMedia` reflects the window the page is in, so the same code reports `browser` for the
site opened in a tab and `standalone` for the installed app, which is the test harness you need
when checking a layout in both.

### Keeping the web header out of the app window with CSS alone

When the only change is visual, skip the script and switch on the media feature directly.

```css
.site-header {
  display: block;
}

@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  .site-header {
    display: none;
  }
}
```

The rule leaves the header in place in a browser tab and in any engine that does not implement
`display-mode`, which is the safe default for navigation.

## See also

- [display_override manifest member](/reference/manifest/display-override/)
- [scope manifest member](/reference/manifest/scope/)
- [orientation manifest member](/reference/manifest/orientation/)
- [Installability criteria: what makes a PWA installable](/reference/installation/installability-criteria/)
- [Web Application Manifest: display member](https://www.w3.org/TR/appmanifest/#display-member) (w3.org)
- [display-mode](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/display-mode) (developer.mozilla.org)