Blanch the green beans: Bring a large pot of salted water to a boil and add the green beans. Cook for 4 to 5 minutes until bright green and just tender, then drain and set aside.
Preheat the oven: Set the oven to 375°F and butter a 9x13-inch baking dish so the casserole doesn't stick while baking.
Cook the turkey bacon: In a large skillet over medium heat, cook the chopped turkey bacon until the edges crisp and fat renders, about 5 minutes.
Sauté onion and garlic: Add the diced onion to the skillet and cook until soft and translucent, about 4 minutes. Stir in the garlic and cook 1 more minute until fragrant.
Make the roux: Push the onion mixture to one side, add the butter, and once melted, whisk in the flour. Cook for 1 minute, stirring, until it smells nutty and loses its raw smell.
Whisk in the liquids: Slowly pour in the warm milk and chicken broth while whisking constantly to prevent lumps. Keep whisking over medium heat until the sauce thickens enough to coat the back of a spoon, about 5 minutes.
Melt in the cheese: Remove the skillet from the heat and stir in the shredded cheddar a handful at a time until smooth and fully melted. Season with salt and pepper.
Combine beans and sauce: Add the drained green beans to the sauce and fold gently until evenly coated.
Transfer to the baking dish: Pour the green bean mixture into the prepared baking dish and spread it into an even layer.
Bake uncovered: Bake at 375°F for 20 minutes, uncovered, until bubbling gently around the edges.
Add the crispy topping: Remove the dish from the oven, scatter the crispy fried onions evenly over the top, and return to the oven.
Finish baking: Bake another 5 to 8 minutes until the onions turn golden brown and the sauce bubbles at the edges. Let the casserole rest for 5 minutes before serving.