Preheat your oven to 375°F (190°C). Grease a 9 × 13-inch baking dish with butter or cooking spray.
Bring a large pot of salted water to a boil. Add the broccoli and cauliflower florets and cook for 3–4 minutes until slightly tender but still firm. Drain well and set aside.
Melt the butter in a medium saucepan over medium heat. Add the flour and whisk for about 1 minute until smooth.
Slowly pour in the milk while whisking continuously to prevent lumps. Cook for 2–3 minutes until the sauce starts to thicken.
Reduce the heat and stir in the sour cream, cheddar cheese, mozzarella cheese, garlic powder, onion powder, salt, and black pepper. Mix until the cheese melts and the sauce becomes smooth and creamy.
Add the drained broccoli and cauliflower to a large mixing bowl. Pour the cheese sauce over the vegetables and gently toss until everything is evenly coated.
Transfer the mixture to the prepared baking dish and spread it into an even layer.
Sprinkle the grated Parmesan cheese and remaining shredded cheddar cheese evenly over the casserole.
Place the baking dish in the preheated oven and bake uncovered for 25–30 minutes, or until the cheese is melted, the edges are bubbling, and the top is lightly golden.
Let the casserole rest for 5–10 minutes before serving. This gives the creamy sauce a little time to settle and makes serving easier.