Probably just burner needs cleaning, if you can access burner by removing lower vent on outside of caravan clean it with a small paintbrush & meths & blow out with airline if can.
Depends on make and model, most Electrolux/Dometic sparks go across to thermocouple, this gap then must be less than sparker to burner or the spark will take the path of least resistance to the burner.