a Mount or pet gains xp at half the rate its master does. When it reaches a new level, it’s AC, defenses, and attack bonus improve by one, and it gains hit points according to its monster role and the table on pg. 184 of the DMG. For every 2 levels reached, it increases attack damage by 1. Upon reaching 5 levels above its original level, it stops improving.
See also: House Rules