diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index 3d76074..352bf04 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -387,7 +387,7 @@ function user_user_view_alter(array &$build, UserInterface $account, EntityViewD
     foreach (Element::children($build['user_picture']) as $key) {
       $item = $build['user_picture'][$key]['#item'];
       if (!$item->get('alt')->getValue()) {
-        $item->get('alt')->setValue(\Drupal::translation()->translate('Profile picture for user @username', ['@username' => $account->getUsername()]));
+        $item->get('alt')->setValue(\Drupal::translation()->translate('Profile picture for user @username', ['@username' => $account->getDisplayName()]));
       }
     }
   }
