I have created an adaptive website in MVC4. I know how to switch between desktop and mobile view for entire website using viewswitcher. My problem is I want to switch a single page to desktop view when a person visits that page from mobile device.
For Eg : There is an ActionResult
Test, So when a person visits this page (Test) from Desktop then by default desktop view is displayed but when a person visits the same page from mobile again desktop view should be displayed instead of mobile. As my website is adaptive so there is a _Layout.Mobile.cshmtml
page which is rendered automatically when a person is coming from mobile. To avoid this I had created test.Mobile.cshtml
page in which I have set Layout = null;
and copy pasted all the _Layout.cshtml
html but as there are media queries for Mobile device all my Desktop css is getting overridden which doesn't serve the purpose.
So my question is how to switch a single page between desktop and mobile instead of entire site. All the other pages should function as it is (adaptive).