The thorn whip cantrip description is:
You create a long, vine-like whip covered in thorns that lashes out at your command toward a creature in range. Make a melee spell attack against the target. If the attack hits, the creature takes 1d6 piercing damage, and if the creature is Large or smaller, you pull the creature up to 10 feet closer to you.
If the cantrip is directed to a target riding a mount and hits, should both mount and rider be pulled?