Thank you very much for the question. You're right that you're probably not going to be asked to go back to the kitchen very often, but you certainly are ripe for criticism within the public sphere, as all officials are.
I would suggest that you speak out when you see these incidents happen, both as they're happening, if you can in a way that's safe, but also follow up after. If it isn't going to be constructive to do it in that moment, you could speak to the person, after what was perhaps a live incident, and follow up with them. If it's happening online, it becomes a bit of a challenge.
Your job as a male ally is to help call this out and to suggest new ways and new language. You can be upset with a politician for their particular decisions, but attacking them on the basis of their gender, their race, or their ethnicity is absolutely unacceptable. On any of those fronts, you have a special role and an opportunity to speak out, support, and check in with that female leader to make sure she's doing okay, to see if there's anything she might need as support. Also, actively try to find more women leaders and voices to sit around you and inform you so you can understand their experience.