Let $X \hookrightarrow \mathbb{P}$ be a smooth variety inside some projective space $\mathbb{P}$ and let $H$ be a smooth hyperplane section of $X$. Now let $\varphi$ be an automorphism of $X$. 

Why is it true that $\varphi^\ast$ acts trivially on the cohomology class of $H$?