<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@media (display-mode: fullscreen) {
h1 {
color: green;
}
}
@media (display-mode: standalone) {
h1 {
color: red;
}
}
@media (display-mode: minimal-ui) {
h1 {
color: orange;
}
}
@media (display-mode: browser) {
h1 {
color: blue;
}
}
</style>
</head>
<body>
<h1>CSS @media display-mode</h1>
<p>Open this example in firefox and press F11 for fullscreen.</p>
</body>
</html>