<!DOCTYPE html>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
@media (grid: 0){
h1{
color: red;
}
}
@media (grid: 1){
h1{
color: blue;
}
}
</style>
</head>
<body>
<h1>CSS @media grid</h1>
<p><strong>Note</strong>: Check the following</p>
<ul>
<li>If h1 color is blue, then you are using grid device.</li>
<li>If h1 color is red, then you are not using grid device.</li>
</ul>
</body>
</html>