Many more details needed. How old is notebook? Did it come with W8.1 already on it? Has it ever worked ok? When did it start this behaviour? Did you change anything - hardware or software? Have you cleaned the air vents of fluff, Are the fans working? Does it do this using the battery and/or mains, etc etc.
Dell XPS 13 9370 (2018) review