Use a Bluetooth adapter like the Mayflash Magic-S Pro to connect your controller wirelessly This article explains how to use a PS5 DualSense controller on PS4. The PS5 controller doesn't just work ...
The good news is that many of these PS4 headsets also ship with an adapter for use with a standard USB-A port, but it's always worth double-checking the brand's website and specs just to make sure.