#mob-floating{ display:none; } @media (max-width:767px){ #mob-floating{ display:flex; } }