Wash and slice potatoes and onions into 1/8-inch slices. A mandolin slicer is helpful for this. There is no need to peel the potatoes. Combine in a 9x13-inch baking dish.
Melt butter in a medium saucepan over medium heat. When butter starts to sizzle, add flour and cook, stirring constantly for 2 to 3 minutes. Add milk slowly, while whisking over medium heat until smooth and well combined. Add dry mustard and continue to cook until thick and bubbly.
Remove from heat and add cheese, stirring until melted and well combined. Pour over potatoes.
Cover with foil and bake for 60 minutes. Remove foil and bake another 20 to 30 minutes until golden brown.
Notes
You can use any type or combinations of cheeses that you desire. I personally like to use 1 cup cheddar cheese and 1/2 cup Gruyere cheese.