Even though the PlayStation 5 DualSense controller is not usually compatible with the PS4, there are a couple of workarounds you can use to get it to work.
You can use the PlayStation 4 DualShock controller on a PS5 — but only when playing PS4 games. However, you can use the PS4 controller with any PS5 game while doing remote play on your phone or tablet ...