Is there a reliable approach to differentiate between mobile phones and tablets in order to direct phones to a mobile version of a website without affecting tablets?
Possible solutions:
htaccess redirect : While I have been able to redirect all mobile devices, I have not found a way to specifically target phones versus tablets.
User agent JS filter : Encountering the same issue as with htaccess redirect.
User agent + window.width : This method works to some degree, but it is not foolproof as I cannot account for every device, leading to potential misclassification of landscape tablets as phones and vice versa...
Is there an industry best practice for tackling this issue?