Change landing page for Mobile

I’ve created a landing page for my website which displays a video of my company, but it don’t work with mobile devices.

So I’ll like to change de main page for mobile devices, so that it don’t show the landing page.

I’ve searched online and found a script that’s said to do so if placed into header.php right after

Which is the following:

<script type="text/javascript">
if (screen.width <= 699) {
document.location = "redirect link";

I tried it out, but it didn’t work, actually the site took forever to load on mobile after this script was added

Any thoughts on that?

Hello, your issue looks like general WordPress issue.

I kindly suggest you to use forums to find a solution.

Kind Regards, Roman.