Serving specific views based on the browser user agent is an outdated concept because it doesn't talk enough about device capabilities. For example, iPhone and iPad have different screen sizes, and even mobile browsers allow you to change the user agent.
The new concept is called Responsive Design, where one page is created that fits and displays / hides a specific element based on the available screen width. One popular deisgn CSS system is Bootstrap , originally developed by Twitter and later open.
Here is an example of responsive design. When you go to the site and change the width of your browser, the design is updated, as well as from 3 to 2 to 1 columns with a browser or mobile phone (from the Hamburger menu).
Tseng source share