In CSS, we make selections of different devices by using media queries. Media queries give us an easy way to select devices based on numerous conditions, such as screen size, pixel density, or even format: i.e., print or screen.
This has progressively gotten more complicated over time, and now we are often balancing many conditions that sometimes conflict with each other.