Check out example codes for "css media queries if else". It will help you in understanding the concepts better.

Code Example 1

@media (min-width: 600px) and (max-width: 800px) {

/* your css code here  */
 /* html { background: red; } */
}

Learn ReactJs, React Native from akashmittal.com