In developing a Cordova Android application, I designed a CSS specifically for screen resolutions of 1080 x 1920. This CSS is accessed using media queries.
@media screen and (max-width: 680px) and (orientation:portrait) //Compatible with Galaxy S5
or
@media screen and (device-height: 1920px) and (device-width: 1080px) and (orientation:portrait) //Compatible with Galaxy S4
The CSS displays correctly on the Galaxy S4 device, but appears enlarged and broken on the S5 device, despite both having the same screen resolution.
The meta data is defined as
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" />
Can you please advise on the necessary changes to resolve this issue and enable the use of the same CSS for both Galaxy S4 and S5 devices?