Don't worry, your beers gonna be good.
If it popped the lid then it's gonna be protecyed by the krausen and CO2 produced.
Clean and sanitise the mess. place the lid back on (Unsealed) wait a week then transfer to primary or fit a bung and airlock.
What kind of ale are ya' brewin?