Trying to go after each device is a crazy errand. Don't call you a fool, it says lol;) Devices often change according to their latest OS update. use resolution instead and leave enough margin of error to account for most devices. However, if you decide to embark on this mission, use this:
@media screen and (device-width: 360px) and (-webkit-device-pixel-ratio: 3) {}
As long as you use your widths to 100%, and your body has a groove of at least 15 pixels wide, your width will be adapted accordingly.
My advice is to use an adaptive framework like Bootstrap, especially Bootstrap4, which it runs on large mobile devices like iPhone6 ββand Notes
source share