I found the other method in some of my old code before I copy and pasted.
Just set the html property of the form to nothing.
For example, to set remove the material theme from the material_form
, use:
material_form.html = ''
Or from with in the form
self.html = ''
Hopefully that works as it has been a while since I looked at this