Window size after minimizing

I open Leo AI in my Brave Browser. I resize the browser window to a specific size. I then minimize the window (without closing Leo AI), and–when I open the window again–it gets automatically resized to almost maximized size (and I can’t resize it again without closing Leo AI).

How do I set it to keep to the way I resized it (or to stop making the window huge like that)?