Hi, not sure whether you will found a solution for this by now, but using different locations will allow you to do this. You can create one location for school and set the proxy and one for home where the proxy is not set. The user will then be able to switch between the two as they need to.
Apple's support page for this feature: https://support.apple.com/en-gb/HT202480