Tested on minecraft-server 1.14.4
When alone on the server, compass works as intended. When there are more players online, it looks like the state of the compass is being replcicated throughout other player's instances.
Check the clip in the attachment. Purple banner is the world spawn, look at the compass of the other player, he is also seeing the changes in his client.
Resolved as duplicate of MC-108598 because this is likely the underlying issue