how can i launch an app on mobile phone with php code?

I have a lot of followers on Instagram
But sometimes I upload my videos on YouTube and share the video link on Instagram Story.
The problem is that:
Instagram’s internal browser does not allow you to open links in the youtube app.
I want to make this possible using php code.
I already saw a code in JavaScript that does this, but I want to use php.

Can anyone help me?