You could try Ionic 2 for your mobile environment. Do custom or some template based for Desktop. Yes, it can tell when it is desktop or mobile. You could even make it a real app on your phone, if that is your thing. Look into Cordova:
command is something like
meteor run android
meteor run ios
This will build an app for phone. If you are going to do IOS, then you will need a Mac.