I am looking for a way to show the content of a page without the header, footer and sidebar to deploy it in an app through a webview.
I created a new page template (full-width-no-title-no-menu) by copying the existing page template (full-width-no-title) and removing the “get_header();” line. However, the formatting is not great.
Removing the header is problematic because within the header file is wp_header through which lots of important scripts are outputted. The easiest would be to use CSS in a Custom CSS plugin like Simple Custom CSS or in your child theme style.css file.