Begin by peeling the russet potatoes and use a box grater or food processor to shred them into small pieces. Place the shredded potatoes in a large mixing bowl.
Sprinkle the shredded potatoes with salt and pepper, and then toss to combine. Let them sit for about 5 minutes to release excess moisture.
After 5 minutes, use paper towels to squeeze out as much moisture as possible from the potatoes.
Add the melted butter, shredded cheddar cheese, and chopped onion (if using) to the bowl with the potatoes. Mix well.
Preheat a skillet or frying pan over medium heat and add olive oil. Once hot, scoop the potato mixture into the skillet, spreading it out evenly.
Cook for about 10-12 minutes until the bottom is golden brown and crispy.
Carefully flip the hashbrowns using a spatula and cook the other side for an additional 10-12 minutes until it's also golden brown.
If you prefer your hashbrowns extra cheesy, transfer them to an oven-safe dish, sprinkle additional cheese on top, and place under the broiler for 2-3 minutes until melted and bubbly.
Remove from heat, let cool slightly, and serve warm.