If your electric dryer is tripping the breaker then it can either be the dryer itself or a weak breaker.
If you can replace the breaker with a new one if the breaker is old and see if that fixes the problem. If not then it's something in your electric dryer causing an overload.
Your electric dryer could be on the way out and it's probably drawing way too many amps that the breaker can't handle and the breaker is shutting the electricity off like it should.
If your dryer is getting old 9 or 10 years and the breaker is tripping it could be that the dryer has just about worn out and you need a new one.