Preheat the oven to 375°F (190°C). Lightly grease a 9 x 13-inch baking dish with cooking spray or butter. Set it aside while preparing the mushrooms and creamy sauce.
Heat the olive oil and 2 tablespoons of butter in a large skillet over medium-high heat. Add the sliced mushrooms in batches if necessary to avoid overcrowding. Cook for 6–8 minutes, stirring occasionally, until they release their moisture and begin to turn golden.
Add the chopped onion to the skillet with the mushrooms. Cook for 3–4 minutes until softened. Stir in the minced garlic and cook for another 30 seconds until fragrant. Remove the skillet from the heat.
In a large mixing bowl, whisk together the condensed cream of mushroom soup, sour cream, and milk until smooth. Add the dried thyme, dried parsley, salt, and black pepper. Stir in the mozzarella and ½ cup of Parmesan cheese.
Add the cooked mushroom mixture to the creamy sauce. Fold gently until the mushrooms are evenly coated. Transfer everything to the prepared baking dish and spread it into an even layer.
In a small bowl, combine the panko breadcrumbs, melted butter, and 2 tablespoons of Parmesan cheese. Stir until the breadcrumbs are lightly coated. Sprinkle the mixture evenly over the mushroom filling.
Place the casserole in the preheated oven and bake uncovered for 25–30 minutes, or until the sauce bubbles around the edges and the breadcrumb topping turns golden brown. If the topping browns too quickly, loosely cover the dish with foil.
Remove the casserole from the oven and let it rest for 5–10 minutes. This allows the creamy sauce to settle slightly. Garnish with a little extra parsley if desired and serve warm.