To get through the fire in level 4 of episode 3 in LEGO Batman, start by breaking apart objects in the area. Keep an eye out for shimmering or shaking bricks.
Those special bricks let you build Batman's heat suit, which protects him from the flames so you can pass safely.