Step 1 - Create a WordPress page template le
In your local computer, create a text file, copy the following code and save it as "no-head-foot.php".
Step 2- Upload the le to your WordPress theme folder
FTP the created file no-head-foot.php to your WordPress theme folder, which is wp-
content -> themes -> yourthemename.
Step 3 - Select the template in the WordPress page editor
In the WordPress page editor, Page Attributes tab, choose Clean Page from the
Template drop-down list.
This should do the trick.
Also refer
https://www.wonderplugin.com/wp-content/uploads/2017/06/How-to-create-a-WordPress-page-without-header-menu-sidebar-and-footer.pdf