> My phone keeps trying to use wifi rather than connecting to my cellular network.
This already exists and it's called "Wi-Fi Assist". It's disabled by default but you can enable it by scrolling all the way down in the "Mobile Data" settings menu (after all the apps).