Start by preheating your oven to 425°F (220°C). Line a baking sheet with parchment paper to prevent sticking and ensure even cooking. This step sets the foundation for perfectly roasted ingredients.
In a microwave-safe bowl, toss sliced potatoes with garlic, olive oil, salt, and pepper. Microwave them until just tender, which helps speed up roasting and ensures a creamy interior.
Spread the potatoes on the baking sheet in slightly overlapping layers, forming small rectangular portions. This creates a sturdy base for the fish while allowing the edges to crisp up nicely.
Pat the cod fillets dry and season them well. Place each fillet on top of the potato stacks, then add butter pieces, thyme sprigs, and lemon slices for flavor infusion.
Bake everything in the oven until the fish becomes flaky and tender. The potatoes will turn golden and crisp, while the butter and lemon create a light, flavorful sauce.