You can do it detecting the device dimensions to determine whether is an small screen device or you can try to detect the kind of device which is accessing.
In order to detect the resolution of the device you can use Javascript (or jQuery) or even CSS 3 using the @media
queries.
jQuery example:
var windowsWidtdh = $(window).width();
var windowsHeight = $(window).height();
CSS 3 media queries:
/* Hidden the mobile extra info for desktop computers */
#mobileInfo{
display:none;
}
/*Showing the mobile info for screen resolutions smaller than 640px*/
@media only screen and (max-width: 640px) {
#mobileInfo{
display:block;
}
}