I found out when you spawn a horse on the top of the fence, it can be stuck on the ground.
Here is a list of steps that you can believe me:
Things that you need: 3 glass blocks, 3 fences and a mob spawn egg.
The image of the build is down here
Spawn a mob on top of the fence
Then the mob should be in the ground
 If this bug does not make sense let me know!🙂
A residual edge case of MCPE-8413. Works with other blocks besides glass above the fences (I tested obisdian).