From the Super Mario Wiki
Retrieved from "https://www.mariowiki.com/index.php?title=Space_Troopa&oldid=2259503"
In The Super Mario Bros. Super Show! episode "Stars in Their Eyes". Mario, while maneuvering his spaceship through a swarm of flaming meteors, mentions that he is being chased by King Koopa's Space Troopa minions; Mario evidently escaped these Space Troopas, as, after this brief mention, they are not seen or referenced to again.
Later on in the episode, Koopa Troopas wearing oxygen helmets appear as workers in Moon Man Koopa's Quirk Factory; it is possible these oxygen helmet-wearing Koopa Troopas are the Space Troopas mentioned earlier in the episode by Mario.
Coincidentally, space-helmet wearing Koopa Troopas appear on the moon in the NES version of Mario's Time Machine. When knocked into their shells, the helmet covers the top of the shell instead.