Generate html based on platform (desktop or mobile).