Mobile "views" and browser detection

So I am trudging thru the development of a companion "mobile" site to my main Elgg site.  I've found it ever-so amusing searching Google for advice, only to return articles and documentation stating that mobile/iPhone integration with Elgg's view system is "easy" and "powerful"; yet search results find no real world examples or explanation on *how* to do so.  All of my progress has been personally developed from the very thin documentation provided from the "views" sections on the Elgg documentation site.  I am not really seeing how developing an entirely new view for every single module is more effecient than a separate install connected to the same database, but I'm trying to roll with it.

I've made a lot of progress and have individual pages looking pretty good by manually adding "?view=mobile" to the end of each URL I want to view on my phone.  However, I don't see how it's possible to get Elgg to detect a mobile device and automatically change the view from "default" to "mobile".  There's no documentation on where to insert the code.  I've tried inserting browser detection routines and a "set_input('view','mobile');" in to the index.php of my plugin/theme, the header.php of my default view and various other places, but that does not appear to be the correct way to do this.  It simply doesn't work.

Has anyone developed a mobile site using views?  Where is the proper place to insert browser detection if you'd like to switch views?  Does it have to be done on every page element?  That sounds excessive if it can be done with a main switch, but I am willing to try anything.