I try to make this media query work on both desktop when I resize the page and on Mobile phone.
this work on mobile
@media screen and (max-device-width: 320px) {
...
}
and this on desktop
@media screen and (max-width: 320px) {
...
}
but I can’t make them work both I try to use or operator but didn’t work.
According to the W3 documentation for Media Queries:
Use a comma instead of or: