When I use more than one SVG, the colours of my SVGs are changing. I’ve already tried converting the SVGs but that didn’t work. Assigning a custom id didn’t make the problem disappear either.
Thank you so much! I didn’t know SVG can contain classes.
I’ve exported the SVG again from Illustrator through File > Export > Export As, with the settings shown in the image. It works without any problem now!