Is it possible to visually display the contrast for two different groups GLM-analysis (in the context of one experiment)

I am using the latest version of the mne library for the moment 2022 august.

So my question is whether I can visually (like the example from the textbook group analysis based on GLM) display the contrast but for TWO DIFFERENT GROUPS during the same experiment. They shared a link to an unpaired test with me - but I need to calculate the contrast in two different groups for the same event.