I am using the simple tag below to get the screen width.
$DeviceTypeWidth = "<script>document.write(screen.width);</script>";
if($DeviceTypeWidth >= 1000){
echo 'Above 1000';
}else{
echo 'Below 1000';
}
However no matter what I try the always triggers the ELSE value regardless of screen size.
Thanks
I have tried all manner of things