I have some static pages on the site which will be rendered on mobile site as well. I will be serving these pages from the desktop application. To make it mobile design friendly, I need to hide the header and footer from the pages. These pages are cms pages, product pages etc..I can have the mobile pass some parameter in the URL to identify the referrer(cant use server referrer variable). example.com/comingfrom/mobile/privacypolicy.html.
From admin I tried adding
<remove name="header" /> <remove name="footer" />
under custom layout update xml and it worked fine but this removes header/footer forever. Where in the code I need to place this information? Which layout file to update? Thanks!