<h1>Resolution Check</h1>
<p>Please rotate the device.</p>
body {
  text-align: center;
  margin: 50px;
  font-family: 'Lato';
}

h1 {
  font-size: 2rem;
  text-transform: uppercase;
  color: green;
  font-weight: 900;
}

p {
  font-size: 1.5rem;
}

@media (min-width: 600px) {
  h1 {
    font-size: 4rem;
  }
}
let myMediaQuery = window.matchMedia('(min-resolution: 200dpi) and (min-aspect-ratio: 16/9)');

function matchMediaCallback(myMediaQuery) {
  if(myMediaQuery.matches) {
    document.querySelector("p").textContent = "Loading game resources..";
  } else {
    document.querySelector("p").textContent = "Please rotate your device";
  }
}

myMediaQuery.addEventListener('change', matchMediaCallback);

matchMediaCallback(myMediaQuery);

External CSS

  1. https://fonts.googleapis.com/css2?family=Lato:wght@400;900&amp;display=swap

External JavaScript

This Pen doesn't use any external JavaScript resources.