How to reduce or control the size of the heatmap when entering into fullscreen mode?

Hey guys,

I am plotting a heatmap and displaying it on my app by doing st.pyplot and it looks like this:

But when I click the arrows button to enter ‘fullscreen’, the heatmap gets completely zoomed and looks as follows:

Is there a way the zooming be controlled or reduced when I enter into the ‘fullscreen’ mode?