Two easy suggestions would be first and the easiest, which is to stop playing and do something else that you enjoy doing.
This is where you need balance in your life and other interests besides poker. It could be another hobby or anything that gets your mind off poker. I enjoy going for a drive and getting food, lol.
If I was grinding in a casino it would be a walk to the car for snacks or a walk though the casino or just a 15-20 min walk away from the people at the table. Sometimes you can play for 4-5 hours at a table, not realizing how fast time flies and before you know its 8-10 hours later without eating and a lot of folks get cranky so that's might irritate folks as well, something to think about.
The next thing you could do is try to correct whatever problem you have that's creating the tilt if you still have the urge to play. One simple thing is to watch an instructional video, read an article or a chapter in a book that reminds you how to play properly.
You could also use a poker simulator like Poker Snowie or Advanced Poker Training to get get you off tilt. If you're playing $1/2 or $1/3 where you have a few hundred dollars in front of you then the 20-30 bucks a month might well be the investment. Then find that level in the simulator that if you don't bring your best game then the sim will crush you and see if you can get your composure back from tilt.
It will wake you up to play your best game or definitely tell you to stop if you can't play well while not risking money.
But the best thing you can do is to continue developing your understanding of the game you're playing and gain experience so that you have a good idea where a hand is going to take you before its even dealt to you.
The point is once you understand whether you made a simple mistake like over betting a hand when you were at best a coin flip or again putting yourself in a situation to play bingo poker against some beginner that plays every hand because they don't know starting
hands and the fault is really in your control instead of "Lady Luck" then the game becomes easier and so does dealing with tilt.
GL