My guess is the cat is heating up. You may need a new one. But there’s no reason to guess, take it to a shop or auto parts store and get the diagnostic codes read. Then you will be working with objective data, not guesses.
There are about 1,000 reasons that light can come on so the codes come first. Note that when the light goes off, it might get scanned and turn up nothing. Many auto parts stores will read codes for free - but make sure you drive in with the light still on. And if you want to post back for comment post the exact code (like “P0123”) rather than what someone said it means. They probably don’t even know what it means.