I have a situation at hand. Got a domain covid19zim.online and recently developed a dedicated mobile web version to be served on m.covid19zim.online.
So my question is how to I get user agent and direct the user based on the device they are visiting the platform from.
Desktop users will be served with covid19zim.online and mobile users m.covid19zim.online
I found the following package https://github.com/hisorange/browser-detect but its use case is not clearly articulated for my scenario. Thanks.