I'm working on a cordova hybrid appliication. I want to have separate html views based on compatibility. The issue came in with angular material design not working too well on older devices. I don't want to scratch the material design screens for everyone. My plan is that newer devices will run one set of views while older devices run another. This split will be based off device type and OS version.
My initial thought was to have two separate index files specified for different builds. So the split could be based off a flag in my gradle build. Leaving me with 2 builds, one for new devices and one for compatibility's sake. Any ideas?