Element is invisible but `getComputedStyle` says otherwise

I’m interacting with a React web app which sometimes hides an element within the page.

I’m trying to detect if that element is visible or not, using an injected script onto the page.

Problem is: even though the element is visually hidden, as per my eyes, it’s still on the DOM, and:

getComputedStyle(temp0).visibility
"visible"

getComputedStyle(temp0).display
"block"

getComputedStyle(temp0).opacity
"1"

I’ve also tried for temp0 parents, up to 3 level.

Any ideas why it’s not working?