Spectating a mob named Dinnerbone does not flip the screen.
I typed
/summon Cow ~ ~ ~ {CustomName:Dinnerbone}
and it made a cow that was upside-down (that's not the glitch), and typed /gamemode 3 and left-clicked the cow and the screen did not flip upside-down.