That’s not quite right. There is a difference between screen resolution and device width. We had a thread going on early today about it.
Although you can do this (I have a couple of sites that check iOS, Android, iPad and displays data based on device, but the sites are CMS driven) the breakpoints already work really well across devices.