If you’re an Android user and want to play games on an Android Phone with a PS4 controller then check out the article How to connect a PS4 controller to Android Phone.
How to connect a PS4 controller to an iPhone
Once the PS4 controller is connected to your iPhone, you’ll be able to play many of your favorite iPhone games. Most games have built-in support for Bluetooth controllers. This is a pretty much easier process to connect a PS4 controller to your iPhone.