Preheat the oven to 400°F (200°C).
Prepare the mushrooms: Clean and trim the mushrooms, then place them in a large mixing bowl.
Make the seasoning: In a small bowl, combine olive oil, minced garlic, parsley, thyme, salt, and black pepper. Mix well.
Coat the mushrooms: Pour the seasoning mixture over the mushrooms. Toss until all mushrooms are evenly coated.
Arrange on a baking sheet: Spread the mushrooms in a single layer on a baking sheet or in a baking dish. Avoid overcrowding.
Bake: Heat the oven, then place the mushrooms in the it. Bake for 15–20 minutes. Stir halfway through to ensure even cooking.
Add lemon juice (optional): Remove from the oven and drizzle with lemon juice for a bright, fresh flavor.
Serve immediately: Transfer the baked mushrooms to a serving dish and enjoy them warm.