The bug
Shulker riding minecart can be "outside" of the minecart when looking from the right camera angle. This issue also happens when is shulker riding minecart with chest, hopper, spawner or furnace. It can also cause z-fighting
To reproduce
/summon minecraft:minecart ~ ~ ~3 {Passengers:[{id:"minecraft:shulker"}]}
Related issues
relates to
Attachments
Comments

[media][media][media][media]
Can confirm in 1.17.
Can confirm in 1.19. The following command can be executed to easily reproduce this.
/summon minecraft:minecart ~ ~ ~3 {Passengers:[{id:"minecraft:shulker"}]}
Can confirm in 1.19.1.
Can confirm in 1.19.2.