Detecting a mobile browser

I have often looked at my sites on my mobile.  Some look good, others look really bad – usually down to some clever fancy-arse stuff that wouldn’t even work on a mobile.

So, I have finally found this article that reckons it is sussed.  I’m gonna try it out.