Anger of the noonday sun, 9th level spell for fire elemental form druids - 1st hit with a fire spell won't directly hurt an immune enemy but strip the immunity as a secondary effect & lasts longer than the tiefling one too. I use this approach on a rather fun tabaxi trailblazer druid 17/monk3 falconry build, relying on body of the sun to strip immunity of whatever i'm close to then the imbue (fire elly form grants it) dishes out a solid chunk of damage.. combine with reborn in fire from primal avatar & it's very effective.
Elemental savant sorcerers can do it for whatever their element is in while shifted into elemental form, but it's the capstone so is exclusively level 20+
Bombardier alchemists can do it for any element plus poison with tier 5 in that tree.