So I have created a website in Wordpress to market a mobile app service that I provide. Once a user signs up on the website, I want to detect the device that they are on and send them to the appropriate app store to install the app to make it a seamless transaction for them. So far, I have been using a javascript library called MobileDetect that is based on a PHP MobileDetect project. It is basically based on deciphering the useragent string to determine the device. This has been working fine for awhile, but recently with iOS 13, I can no longer detect an iPad because Apple has changed the useragent because they don't want mobile versions of websites popping up automatically on iPad Pro, they would prefer full desktop versions of the webite to appear. So if a user signs up on a Android or an Amazon Fire device, I can still send them to the appropriate app store. But I am not able to distinguish between whether they sign up on a computer or an iPad as MobileDetect now sees them as both the same.
How can I detect an iPad running iOS 13 so that I can send them to Apple's App Store to download my app after they sign up???