if ( wp_is_mobile() ) {
echo "You are viewing this website on a mobile device";
}else{
echo "You are not on a mobile device";
}
Advertisements