Deploy Ionic App for Browser that opens on a phone frame like ionic serve -lab does

When you run ionic serve -l, it deploys a web page that includes a iframe that runs the application within a phone framed container.
I am very interested in deploying something similar where if a phone calls the production url, the server serves the app directly. But when a desktop or large tablet calls the same url, then serve something similar to what ionic serve -l does :
If it’s a safari, then preload the app in the iframe with an iOS user agent.
If it’s chrome, then preload the app in the iframe with and Android user agent
in the unlikely event of an IE, well, load it on the iframe with a windows phone user agent :smile:

I have an idea about how to code this myself, but I was wondering if you guys know a way that exists and does this out of the box.