How can you rotate elements in 2D with respect to a mesh or model in 3D in the scene?

I am trying to connect the 2D screen point to a 3D model. I need to rotate the text label projected in 2D when the model is rotated. I tried looking up options, but nowhere did i find a way to bind the 2d and 3d. Any help is appreciated.

Something along these lines: ?

This playground is from the GUI documentation for Babylon.js: The Babylon GUI | Babylon.js Documentation

Well, this is using var advancedTexture = BABYLON.GUI.AdvancedDynamicTexture.CreateFullscreenUI(“UI”); but I cannot use it since I only either need to use casttorGUI or project to screen in 2D.