diff --git a/protected_file.info.yml b/protected_file.info.yml
index 810f00b..7798af8 100644
--- a/protected_file.info.yml
+++ b/protected_file.info.yml
@@ -1,7 +1,7 @@
 name: Protected File
 type: module
 description: Manage access download to files uploaded in a private file system.
-core_version_requirement: ^9 || ^10
+core_version_requirement: ^10.3 || ^11
 package: Field types
 dependencies:
   - drupal:field
diff --git a/protected_file.module b/protected_file.module
index 294b852..474dcdf 100644
--- a/protected_file.module
+++ b/protected_file.module
@@ -261,7 +261,7 @@ function template_preprocess_protected_file_link(&$variables) {
     // Add a specific class for each and every mime type.
     'file--mime-' . strtr($mime_type, ['/' => '-', '.' => '-']),
     // Add a more general class for groups of well known MIME types.
-    'file--' . file_icon_class($mime_type),
+    'file--' . \Drupal\Component\Utility\DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.3.0', fn() => \Drupal\file\IconMimeTypes::getIconClass($mime_type), fn() => file_icon_class($mime_type)),
   ];
 
   if ($settings['protected_file_new_window']) {
