CSS2DObject doesnt seem to adjust during canvas/window resize

as the title says, when a canvas is resized the CSS2DObject since I assume is rendered in HTML instead, does not reflect its position when resizing a window or canvas,

our scene will not update but instead the viewport will just adjust during resize, example if the window is small, only a portion is rendered instead of resizing the entire scene based on the window, however it seems like CSS2DObject automatically adjust does the labels and positions are not synced after resize.

what is a good way to handle this?

look more closely at the example code provide on this page
https://threejs.org/examples/?q=css2d#css2d_label
press the <> bottom right
look very closely at lines 183, and 189 -199
they handle when the window is resized for both the renderer and labelRenderer