Prep the Green Beans
Blanch green beans in boiling water for 4–5 minutes. Transfer to an ice bath to stop cooking, then drain and pat dry.
Make the Creamy Sauce
In a skillet, melt butter. Sauté onions until translucent, then add garlic (if using). Stir in flour to form a roux. Gradually whisk in broth and milk. Add seasonings. Simmer until thickened, 4–6 minutes.
Combine & Assemble
Preheat oven to 375°F (190°C). In a large bowl, mix green beans with sauce and optional cheese or mustard. Transfer to a greased 9x13 baking dish.
Add the Topping
Sprinkle with fried onions or buttered breadcrumbs.
Bake
Bake uncovered for 25 minutes or until bubbly and golden. Let rest for 5–10 minutes before serving.