How to make user.html.twig template for two different pages (users)? I want to make user.html.twig template for user ID1 is not such as to all other users. How to?

I tried this code in MYTHEME.theme file:

function MYTHEME_theme_suggestions_page_alter(array &amp;$suggestions, array $variables) {
  if ($user = \Drupal::routeMatch()-&gt;getParameter('users')) {
    // For make files, like:
    // page--user--[id].html.twig
    $suggestions[] = 'page__user__' . $user-&gt;uid();
  }
}


But template page--user--1.html.twig or page--user--%.html.twig don't work. Cache is clear.
Platon, you appear to be mixing up the template for the user itself (user.html.twig) and the overall page template (page.html.twig).

If you want to override the user template then you need to implement hook_theme_suggestions_HOOK where "HOOK" is "user" which is the theme hook you are overriding.

Here is an example of what that code would look like if you were using Bartik (but of course in practice you should be using your own subtheme rather than hacking core):

function bartik_theme_suggestions_user_alter(array &amp;$suggestions, array $variables) {
  $suggestions[] =  'user__' . $variables['elements']['#user']-&gt;id();
  return $suggestions;
}