On this page of Stacks project the pair $(\mathcal{L},\alpha)$ mentioned inside is described as follows:
Fix an integer $n$ and a scheme $X$. We form a pair $(\mathcal{L},\alpha)$ where $\mathcal{L}$ is an invertible sheaf on $X$ and $\alpha: \mathcal{L}^{\otimes n} \rightarrow \mathcal{O}_X$ is a trivialization of the $n$-th tensor power of $\mathcal{L}$. We can show that the collection of isomorphism classes of such pairs form an abelian group.
The main result of that page is to show that the etale cohomology group $H^1(X,\mu_n)$ can be identified with the group described above. What I am confused about is that there must be some restrictions on $\mathcal{L}$ and the definition of $\alpha$. Is $\mathcal{L}$ simply any invertible sheaf on $X$? It seems to be the case from the way it was written. But then, does that mean that for any $n$, we have a trivialization $\mathcal{L}^{\otimes n} \rightarrow \mathcal{O}_X$?
this trivialisation $\mathcal{L}^n \cong \mathcal{O}_X$ simply means that your étale line bundle $\mathcal{L}$ is a so called $n$-torsion line bundle. In fancy language, $\mathcal{L} \in \mathbf{Pic}_{ét}(X)[n]$.
But be aware of the fact that all of this takes place in the category of étale sheaves on $X$! A line bundle $\mathcal{L}$ is not defined on opens of $X$ but on étale covers $X'\rightarrow X$.
The relationship with the group of roots of unity comes from two facts: