using media queries for mobile in html and css code example
Example: media query for mobile view css
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}
@media only screen and (max-width: 600px) {
body {
background-color: lightblue;
}
}