If you are using frozen hash browns, thaw them and squeeze out the excess moisture.
Find it online: https://silverlininghomeplace.com/2022/04/cheesy-hash-brown-bake/