Find Child's Position Relative To World (Global Position)

Hello, I am trying to get the position of a child object relative to the world.
I have looked at other answers about this and all of them say the transform.position should be the position relative to the world.
However, every child object always shows the relative position to the parent in the editor and also when accessing the child’s transform.position in my scripts.

How can I get the absolute global position, instead of the relative position

The editor always displays the local position of an object

But when you access the position of an object in your code,

transform.position will return the world position

and

transform.localPosition will return the local position