I'm sure this question must have been asked before, but I can't find anything. I would like to create 2 versions of my website where the mobile version is displayed in a subarea, for example m. and then the regular desktop version.
I was looking for SO, a similar question is being asked here , but no direct answer is given, and we are talking only about the advantages and disadvantages, which at this stage do not concern me.
Ive searched the web and stumbled upon a message from Mozilla that mentions the use of user-agent detection , but I canβt live; I find a good example (maybe by entering the wrong requests)
If someone can provide me with an example / or a good link on how I can serve two different websites based on the browser viewing port size , we will be very grateful.
javascript jquery html css responsive-design
Timothy coetzee
source share