@media handheld, only screen and (max-width: 480px), only screen and (max-device-width: 480px) { body{ display:none; } html:after{ content: "This site is only available on desktop computers"; } }