Spider-Man: Across the Spider-Verse's digital release answers the question of what version of the movie is actually canon. Spider-Man: Across the Spider-Verse not only matched the heights of its predecessor, 2018's Spider-Man: Into the Spider-Verse, but also surpassed them. The Spider-Verse sequel saw Miles Morales visit multiple universes this time; instead of having Spider-Man variants only come to his world like what happened in the original movie. As Miles discovered several different universes, the hero met many Spider-Man variants in Spider-Man: Across the Spider-Verse, with familiar faces like Spider-Woman Gwen Stacy and Peter B. Parker also making a return.
https://screenrant.com/spider-man-across-the-spider-verse-two-versions-canon-solved/