display-mode media queryLimited availability
The display-mode CSS media query sets styles based on whether the web page is in an ordinary browser tab mode or another mode, such as fullscreen, standalone, or minimal-ui.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–46Not supported
47+Supportedsince Dec 1, 2015
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
4–115Not supported
116+Supportedsince Aug 1, 2023
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Safari, Chrome Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: display-mode.
Feature detection
There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.
Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (5). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| @media.display-mode | 42 | 79 | 47 | 13 | 42 | 47 | 12.2 |
| @media.display-mode.browser | 42 | 79 | 47 | 13 | 42 | 116 | 12.2 |
| @media.display-mode.fullscreen | 47 | 79 | ✕ | ✕ | ✕ | 116 | ✕ |
| @media.display-mode.minimal-ui | 42 | 79 | 57 | 13 | 42 | 116 | ✕ |
| @media.display-mode.standalone | 42 | 79 | 57 | 13 | 42 | 116 | ✕ |