Yes if it is clicking on gas and running on electric, then it frequently is the gap or dirty burner. Blowing that area out with compressed air helps. Using a Emory board to lightly clean the burner slits and the igniter is also helpful. It doesn't have to look very dirty.
Take a look at the burner when it does start for a nice blue flame, if it is yellow at all you may need to reset the mixture at the orifice, but maybe not tackle that one, take to a dealer.
2017 Fuse 23T