One time I used an invisibility pot and got killed by a player. He said that he could see my nametag, Please fix that ty..
If its on anni this bug is old AF and they fixed it. maybe u got any damage or broke a block, when u invi any damage (fall damage, bow, fire etc) makes u uninvis, also breaking a block make u uninvis.