Fullscreen Menu

CodePen Embed - :fullscreen selector
<div class="container">
  <p>When the is to fullscreen <br> Using :fullscreen pseudo-class selector we can control the background and other styles:</p>

  <button>Push to Fullscreen</button>

  <img src="http://xv2-vgm3.xv2.us/streets-ab-z.html" alt="">

</div>
img {
  display: block;
  max-width: 100%;
  margin: 2rem 0;
}

img:fullscreen {
  background: url(http://xv2-vgm3.xv2.us/streets-ab-z.html) 0 0/40px;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 100%/1.7 system-ui;
  background-color: #1b1b1b;
  color: #eee;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem;
}

button {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
  font-family: inherit;
  display: inline-block;
  text-align: center;
  user-select: none;
  border: 1px solid #007bff;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
  color: #fff;
  background-color: #007bff;
  cursor: pointer;
}
let fullscreen = document.querySelector("img");
let button = document.querySelector("button");

button.addEventListener("click", () => {
  if (!document.fullscreenElement) {
    fullscreen?.requestFullscreen();
  } else {
    document.exitFullscreen();
  }
});

External CSS

This Pen XV2

XV2

This Pen Scanner