In either case, Should the mount provokes an opportunity attack When you’re on it, the attacker can target you or even the mount.
“If it's a creature that does slashing hurt or one thing such as you want to verify https://crithitceramics.com/mastering-ranger-backgrounds-in-dd-5e-tips-for-beginners/