I've seen Unity apps have this feature (in particular LittleShopOfJunk). They have a fully playable game on the browser and a Unity app that you can download as well. However, I don't use Unity for my projects so not a possibility for me as I think it's a property of the Unity "Kind of project".
But having two versions, one for the demo and one for the full project, is something I haven't considered, might work as a backup plan!