The challenge of baking, and really any oven cooking, is getting the middle cooked properly without overcooking the edges and exterior. How to prevent a dish from burning on the top when baking? If a dish starts to burn on top before it’s done baking, gently lay a piece of nonstick sprayed foil on top and continue baking.