Desktop & mobile by one code - is it possible

Is it possible to create desktop and mobile version of the same app on Vue with Framework7 BY ONE CODE? I think, that it will be many limitations and nuances.
Or better to create separate versions?

Something like this:

main-mobile v-if = “isMobile”
main-desk v-if = “!isMobile”

Or use different layouts?

It’s possible and if managed carefully ,there will not be any problem

Yes. You can.