How to change the link depending on the operating system of the phone?

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!