I understand that I need to use parameters of measure and other loading shortcuts to make the site load fast for mobile, it's not building the mobile site itself that troubles me.
I need to have a code that shows the browser where to redirect if a mobile phone goes onto the site.
I need to know how to implement it too, I only write html and css, I need a FULL SNIPPET. I've done a tone of research and plenty of coder have given their advice on methods of detection, but haven't said HOW TO implement those methods.