1. Login to your HostGator.com cPanel link (HostGator usually emails you this after purchase).
2. In the cPanel, scroll down to the Files section.
3. Click on "File Manager."
4. If prompted, select to edit the "Web Root" folder.
5. Find the index.html or index.php file of your website. Highlight that file.
6. Click on Code Editor at the top. A new window will appear.
7. Find the tag and click directly after it then hit return to create a new line.
8. Copy and paste the redirect code on the new line you've created.
9. Click Save Changes, make sure to wait for the green conformation then browse your site on your phone.
Note: You will need to setup this redirect on all pages which you want to make mobile friendly.