Remove the burner grates from the cooktop and lift the hood up. If your cooktop features a sealed burner, you will not be able to lift the hood up and can skip this step.
Remove the grime buildup from the pilot hole with a needle. Brush the debris away from the pilot hole with an old toothbrush.
Locate the spark igniter, which you generally can find between the two burners. The igniters on sealed burners are located beside the individual burners on top of the stove.
Scrub the igniter and metal lip above the igniter with the toothbrush. Continue scrubbing gently until you have removed the buildup of grime.
Close the stove hood and replace the burners.