Different twig template for user profiles of different role
It can done by adding a hook theme suggestion based on roles in your YOUR_THEME.theme file

/**
 * Implements hook_theme_suggestions_user_alter().
 */
function YOUR_THEME_theme_suggestions_user_alter(array &amp;$suggestions, array $variables) {
  foreach ($variables['elements']['#user']-&gt;getRoles() as $role) {
    $suggestions[] = 'user__' . $role;
  }
}


Then you can use templates like user--administrator.html.twig, user--editor.html.twig