Different layout for iphone/android

I am looking to create an app with the same logic for android/iphone.
The only difference between the two will be a class name in the template eg tabs-striped so that the tabs appear on the top and a different css file to fit in with platform specific stlyes.
Is there any documentation or examples on how this can be achieved?
I haven’t had any luck with my investigations so far.