A simple and light “detect and redirect” script for mobile devices. It detects the mobile device, it shows the user…