You can connect nearly any Xbox controller to an iPhone, whether it's from the Xbox One or Xbox Series X/S.
You can connect a PS4 controller to your iPhone through the phone's Bluetooth menu, but you'll need to put the controller into "pairing mode" first.