Page template suggestion based on content types but not for node/edit or node/delete
A slightly different approach: Add a custom theme suggestion for the canonical route of your node type(s).

This way, you neither have to meddle with path arguments whose position might change, e.g. when using subpath aliases in a later stage of your site's development cycle, nor have to extend your checks for additional routes added by third party modules, as e.g. node/{nid}/translate, node/{nid}/revisions, node/{nid}/devel, and so on.

I didn't test it though, but you could do something like this:

/**
 * Implements hook_theme_suggestions_HOOK_alter() for page.html.twig.
 */
function mytheme_theme_suggestions_page_alter(array &amp;$suggestions, array $variables) {
  if (
    $route_name = \Drupal::routeMatch()-&gt;getRouteName()
    &amp;&amp; $route_name == 'entity.node.canonical'
    &amp;&amp; $node = \Drupal::request()-&gt;attributes-&gt;get('node')
  ) {
    $suggestions[] = 'page__node__' . $node-&gt;getType() . '__canonical';
  }
}


Then you could rename your page template to page--node--my-type--canonical.html.twig and it should be picked up only for your node type my_type at its canonical (view) route.