When you send Terapagos out in a battle, its ability Tera Shift will transform it into its Stellar form. The Stellar form has the signature ability Tera Shell, which has the following effect:
When Terapagos is hit by a damage-dealing move at full HP (that does not have no effect due to type matchups), it will always be not very effective. The whole move is not very effective, even in the case of multistrike moves.
In the story battle, Terapagos’s type changes every time it puts up a new barrier. It starts as a Normal type, then a Psychic type at the second barrier, and a Water type at the third barrier.
source
source 2