Detect whether user is on desktop or mobile and change layout accordingly.
Detect whether user is on desktop or mobile and change layout accordingly.