wp question

actually non related to any existing site

I have a new request to build a website for mobile only, the client won't touch his existing website and would like to only create a mobile version, so anyone entering his main site from a mobile, should be re-directed to a new domain suitable for cell.

Is there a code I can put to the main site to re-direct to mobile automatically?