This single trick solves most compatibility issues.

How to connect a controller to a PC for gaming on Windows 11 - Microsoft