Preheat oven to 375 degrees F. Grease a 9×13-inch baking dish.: When the oven warms to 375 degrees F you should feel heat radiating if you briefly open it, and a consistent oven temperature is crucial for even browning. Greasing the 9×13-inch baking dish ensures the edges do not stick and helps the bottom develop a slight golden crust. A common mistake is not preheating long enough, which can lead to uneven bubbling and a soggy center, so give the oven time to reach temperature fully.
In a large bowl, stir together all of the ingredients until thoroughly combined.: The bowl should quickly fill with a creamy, slightly glossy mixture as you fold in the hashbrowns , melted butter , canned soup, sour cream , chopped yellow onion , shredded cheddar cheese , salt , and black pepper . Use a sturdy spoon so you can feel any resistance from clumps and break them apart to achieve an even consistency. This blending step determines the final texture, since pockets of dry hashbrowns will bake differently than fully coated pieces. Avoid over mixing into mush, and make sure no large dry patches remain.
Pour into prepared baking dish and bake until golden brown and bubbling, 30 to 45 minutes. Let rest for 10 minutes before serving. Sprinkle with chopped fresh parsley or chives, if desired.: As it bakes the top will transform from pale to a warm golden brown and you will see bubbling along the edges and through the center, which signals that the interior is hot and set. The aroma will deepen to a toasty, cheesy scent with savory notes from the soup and butter . If the top browns too quickly, tent loosely with foil to prevent burning while the center finishes cooking. A common error is underbaking, resulting in a too loose middle, or overbaking, which can dry it out; aim for bubbling and just browned edges.
Let rest for 10 minutes before serving.: During this brief rest the casserole firms up noticeably, making it easier to portion cleanly. You will notice steam subside and the interior become creamier rather than soupy. Cutting into it too soon risks a runny slice, so patience here pays off. One mistake is skipping this rest and serving immediately, which can lead to a messy presentation.
Sprinkle with chopped fresh parsley or chives, if desired.: A light sprinkle of fresh herbs adds a bright visual contrast and a gentle herbal note against the creamy backdrop. The smell of fresh herbs is a fresh lift after the rich baking aroma, and they make each portion look finished. If you skip this, the casserole will still taste great, but a garnish adds appeal and a hint of freshness that balances the richness.