Preheat the oven. Preheat your oven to 375°F (190°C). Lightly grease a 9 × 9-inch baking dish with butter or cooking spray.
Cook the mushrooms. Heat the butter and olive oil in a large skillet over medium heat. Add the sliced mushrooms and cook for 6 to 8 minutes, stirring occasionally, until they release their moisture and become golden brown.
Add the onion and garlic. Stir in the chopped onion and cook for 3 to 4 minutes until softened. Add the minced garlic and cook for another 30 seconds, stirring to keep it from burning.
Make the creamy sauce. Sprinkle the flour over the mushroom mixture and stir well to coat. Cook for about 1 minute, then gradually pour in the vegetable broth while stirring. Add the heavy cream, Dijon mustard, thyme, salt, and black pepper. Simmer for 3 to 5 minutes until the sauce thickens slightly.
Add the cheese. Remove the skillet from the heat and stir in the cheddar and mozzarella until melted and creamy. Transfer the mushroom mixture into the prepared baking dish and spread it evenly.
Prepare the topping. In a small bowl, combine the breadcrumbs, Parmesan cheese, and melted butter. Mix until the breadcrumbs are evenly coated, then sprinkle them over the casserole.
Bake the casserole. Bake for 20 to 25 minutes, until the casserole is bubbling around the edges and the breadcrumb topping is golden brown.
Rest and serve. Let the casserole rest for about 5 minutes before serving. This allows the creamy sauce to settle slightly and makes it easier to scoop.