I think that every one deals with tilt in different ways. The most important thing is to first be able to recognize that you are on tilt, and then, to understand what put you in that position. Poker has so much variance. If you played a hand great, and still lose the hand, and it puts you on tilt, it's legitimately just a mindset problem within yourself, and that type of tilt is the very easiest one to eliminate from disrupting your optimal game. Next hand. Move on.
This is not always easy to do. For example, the drunk guy across the table with a million bucks in his pocket may not care about the money he's playing with. He has plenty, and you're there to simply make a few bucks and go on home to your family. You're playing the best session of your life, and about to get up and leave when you get dealt pocket aces just before your button arrives, and bc you're a gentleman, you've already told the table that this was your last rotation. Drunk guy's playing as reckless as possible and raises huge and you get it all in against him holding 27 off and he gets lucky and runs out two pair on you. You still played great, but now you feel obligated to stick around and put more money on the table to get it back(not wise). A beat like this can keep some people tilted all night long.
I would say it's more likely to go on tilt when you played great and the other person played like a baffoon, and that's just at the base level. What if the drunk guy keeps needling you after you decide to stick around and try to get your stack back? Do you have the discipline to just throw in some earplugs, or ignore what he is saying to avoid mistakes? Some people do not, especially at the beginning of their poker "career".
Once you get passed the realization that bad beats are simply inevitable and you have harnessed the ability to overcome the mental aspect of that, you still have more to worry about. What about when you make mistakes? Do you have the self discipline to determine those mistakes, and to work hard to eliminate them? Tilt is going to occur, but if you can eliminate your own mistakes, and you have the mentality to overcome the variance in poker, you will succeed if you continue to improve your game.