Window arrangement when waking from sleep

I have an external monitor attached to my MacBook Air M1. When it wakes from sleep, all windows are rearranged/resized/moved. Is there any way to prevent this from happening, or, is there a trick or utility that can bring everything back to where they were prior to sleep? My external monitor is an LG 27UN850-W.