calculation vo2 max

when calculating the vo2 max, is the difference in altitude taken into account?

I noticed that when I go up a lot the vo2max decreases, while when I run on the plain it increases .... it seems to me that it does not take into account the difference in height. the same happened with the forerunner 920xt ... I thought that fenix 6 also took into account the difference in height for the calculation