Use @media only screen
HTML:
<div class="mobileShow">
TEXT OR IMAGE FOR MOBILE HERE
</div>
Show content on mobile devices.
CSS:
.mobileShow {display: none;}
/* Smartphone Portrait and Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){
.mobileShow {display: inline;}
}
Hide content on mobile devices.
CSS:
.mobileHide { display: inline; }
/* Smartphone Portrait and Landscape */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px){
.mobileHide { display: none;}
}
Example used from: Schmidt, Lynelle. “How to Display Site Content Only Your Mobile Viewers Can See.”
HubSpot Blog, blog.hubspot.com/marketing/site-content-only-mobile-viewers-can-see-ht.