Right now i have no code becuase i had worked on that in previous company.
But i can help you.
i hope you have normal site.
now you don`t need to change the the code.
just change the UI.
See this link.
you will get all your controls over here.
suppose you have textbox asp.net control. then you have to just give the attributs. look the below example for textbox. here data-role="fieldcontain"
will gibe you the layout.
you can just review 2 days this website. I am sure you will get idea.
All the detailed documets over here.