In a medium non-stick skillet over medium heat, melt the butter.
Add onions and cook until softened, 3-5 minutes. Add the garlic and cook for one more minute.
Add flour, salt, pepper, cayenne pepper, and dried mustard. Cook for another minute.
Slowly add milk and chicken broth, whisking until well combined. Continue to cook, whisking until thickened.
Pour the sauce into the potato mixture. Mix well, then pour into the prepared baking dish.
Bake for 45-50 minutes, until the casserole is bubbly and heated through.
While the casserole is baking, prepare the fried onions.