To specifically target the iPad/Safari browser and accommodate some minor differences in appearance compared to windows/linux browsers, we are implementing the following HTML meta tag and style query:
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="style/tablet.css" />
However, we have noticed that the tablet.css file is being loaded on smaller laptops with screens less than 1024px as well. Additionally, it seems to impact the display when zooming in on larger screens.
Although using device width is a common method for targeting specific devices or browsers, it may not be the most accurate approach. Despite researching online, this seems to be the recommended way to handle such situations.
Is there an alternative method that we could explore?