Cake is built in with MobileDetect nowadays, so it is as simple as this: <?php use Mobile_Detect; $mb = new Mobile_Detect; if($mb->isIpad()){ echo "is ipad"; }else{ echo "is not ipad"; } There are other handy methods such is isMobile(), isChrome() etc: http://mobiledetect.net/