Continuity in Pokemon is basically non-existent. The only thing consistent between each game is the Pokedex entries, and even those sometimes get dramatically altered from one generation to the next.
When it comes to the anime, most seasons can be best described as ‘loosely inspired' by the events of the games, with Ash subbing in for the player character. Sometimes the stories are fairly similar, like in Pokemon Journeys when Ash teams up with Zacian and Zamazenta to stop Chairman Rose from
. Read more on thegamer.com