Sometimes, your PC recognizes your phone in ADB mode but fails in Fastboot mode (showing a yellow warning in Device Manager). Download the Google USB Driver .
Windows 10 often automatically installs basic MTP drivers, but not ADB/Fastboot drivers. Manual installation is almost always required. Avoid “driver booster” tools – stick to Google or OEM-signed drivers for security.
(Then reinstall manually in Device Manager)