If the feature does not appear in the menu, you can force the installation using with this command: dism /online /add-capability /capabilityname:Media.MediaFeaturePack~~~~0.0.1.0 .

: The ability to communicate with portable devices (like smartphones and MP3 players) via the Media Transfer Protocol. Implementation and Maintenance

Microsoft no longer provides a standalone offline installer for recent versions of Windows 11. Instead, you must install it as an through the settings menu. Media Feature Pack for Windows N - Microsoft Support

If you cannot get the pack to install, or you want to avoid Microsoft’s DRM components, here are “hot” alternatives: