Dispel Magic instantly ends any spell on a target creature, object, or magical effect of 3rd level or lower. For spells of 4th level or higher, you must make an ability check with a DC equal to 10 + the spell’s level. To do so, roll a d20 and add your spellcasting ability modifier; if it meets or exceeds the DC, Dispel Magic successfully dispels the spell (PHB 194).
https://www.thoughtsmag.com/dispel-magic-5e/