This media request is not dependent on mobile permission. It depends on the width of the device, suppose the width of the iphone is vertically 320 pixels and horizontally 480 pixels. Try this code
suppose you have a class
.header{
font-size:30px;
}
For mobile, I think your mobile width is 360 pixels * 640 pixels so try
@media screen and (max-width: 360px) {
.header{
font-size:25px;
}
}
@media screen and (max-width: 640px) {
.header{
font-size:25px;
}
source
share