diff --git a/core/css/mobile.css b/core/css/mobile.css
index 82b3424b7aff8..c0628ec779ead 100644
--- a/core/css/mobile.css
+++ b/core/css/mobile.css
@@ -20,7 +20,7 @@
* along with this program. If not, see .
*
*/
-@media only screen and (max-width: 1024px) {
+@media only screen and (width < 1024px) {
/* position share dropdown */
#dropdown {
margin-right: 10% !important;
diff --git a/core/css/mobile.scss b/core/css/mobile.scss
index c33cf0d388602..228166f330340 100644
--- a/core/css/mobile.scss
+++ b/core/css/mobile.scss
@@ -1,6 +1,6 @@
@use 'variables';
-@media only screen and (max-width: variables.$breakpoint-mobile) {
+@media only screen and (width < variables.$breakpoint-mobile) {
/* position share dropdown */
#dropdown {
diff --git a/core/css/server.css b/core/css/server.css
index e62ab12369b07..c45f77f5a9df8 100644
--- a/core/css/server.css
+++ b/core/css/server.css
@@ -4205,7 +4205,7 @@ kbd {
* along with this program. If not, see .
*
*/
-@media only screen and (max-width: 1024px) {
+@media only screen and (width < 1024px) {
/* position share dropdown */
#dropdown {
margin-right: 10% !important;