One of the best tools within Drupal is the ability to create different content types, with different fields, different display settings and also.... the ability to have a different template for each content type. If the theme you are using doesn't automatically create the 'template suggestion' for the content type, add the following to your THEME.theme file.
If your theme was called myD9theme then the following needs to go in your myD9theme.them file.
/** * Implements hook_theme_suggestions_page_alter(). * Used to add template suggestions */ function myD9theme_theme_suggestions_page_alter(array &$suggestions, array $variables) { if ($node = \Drupal::routeMatch()->getParameter('node')) { $content_type = $node->bundle(); $suggestions[] = 'page__'.$content_type; } }
If you have a content type called 'video' you can now create a file called page--video.html.twig. Copy/paste the contents of page.html.twig into this file and amend as needed.
Remember to rebuild the cache or your new code won't be read!