The unobserve() method of the ResizeObserver interface ends the observing of a specified Element or SVGElement.
unobserve()
MDN Reference