:fullscreen

Targets an element while it is being displayed in the browser's full-screen mode (e.g., when a video or a photo is expanded to fill the whole monitor).

Quick example

video:fullscreen {
  /* Keeps the background black during full-screen video playback */
  background-color: black;
  border: none;
}

:fullscreen Browser Support

Widely available Since 2015 94% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.

Safe to use without fallbacks.

71+
64+
16.4+
12+
ESC