Ditto is a Pokémon like no other in Pokémon GO. While most wild Pokémon appear on the map as you walk around, you will never come across a Ditto. Like in the TV show, Ditto transforms into other Pokémon in battle and requires a unique method to catch them in Pokémon GO. Ditto will disguise itself as several Pokémon in Pokémon GO, which, when caught, will reveal itself as Ditto, meaning luck plays a big part in you being able to catch one.
https://screenrant.com/pokemon-go-ditto-disguises-december-2023/