Triple monitor resolution

So my setup is like this:

-mini mac 2019
-triple monitor 1 hdmi 2 thunderbolt

developed a simple sketch with a fullscreen on the 3 monitores that works well, fullscreen, hides the mouse, them menus, the toolbar and runs ultra smoothly.

The problem is when I turn off the monitors and turn them on again, the sketch changes size and doesn’t stay fullscreen anymore.
Is there a way to call something like fullscreen() at the draw() or even a timer so when I can turn
on and off the monitors with have to restart the software?