I want to render a specific page using my own template. My theme regulating html.html.twig and page.html.twig. I want to rebuild completely the page.html.twig but only on specific page.
In my module based on ControllerBase I can only change the content of the page. How can I change the entire page template, but do not touch html theme wrapper?
You can enable theme debug in the
services.ymlfile:Clear the cache and reload the page, and you will see comments suggesting you to customize the template for each page you want.
Create a file in my theme.