I think that is not possible to have the same master page to be fit in the desktop as well as mobile application view, for that you have to create two different master pages. using the media query or the jquery, which can identify the view of the site and adjusts itself accordingly.
Hope this helps
Thanks