I found the following post G-principal bundles on formal disc asking asking about the triviality of principal $G$-bundles on $\operatorname{Spf}(\mathbb{C}[[t]])$ being $G$ a linear algebraic group over $\mathbb{C}$. In the answers section, an user gives a the following answer:
Let $P\rightarrow\operatorname{Spf} \mathbb{C}[[t]]$ be a (Zariski-)locally trivial $G$-torsor for a linear algebraic group $G$ over $\mathbb{C}$. To show that $P$ is trivial, it suffices to exhibit a section $\operatorname{Spf}\mathbb{C}[[t]]\rightarrow P$. Since $\mathbb{C}$ is algebraically closed, there is a rational point $\operatorname{Spec}\mathbb{C}\rightarrow P$. It remains to extend this section over $\operatorname{Spec}\mathbb{C}$ to an infinitesimal neighborhood $\operatorname{Spf}\mathbb{C}[[t]]$. A map $\operatorname{Spf}\mathbb{C}[[t]]\rightarrow P$ is a compatible system of maps $\operatorname{Spec}\mathbb{C}[t]/t^n\rightarrow P$. Starting with $\operatorname{Spec}\mathbb{C}\rightarrow P$, this is the lifting problem posed by formal smoothness, which can be solved since G is smooth.
I don't fully understand the answer. Can you explain me with a little bit more of detail what is the lifting problem posed by formal smoothness and how can we solve it using the assumption that $G$ is smooth?
On the other hand, I would like to know it this remains true in the relative case, I mean, if any principal $G$-bundle on $\operatorname{Spf}(\mathbb{C}[[t]])\times_{\operatorname{Spec}\mathbb{C}} S$ is trivial, being $S$ a $\mathbb{C}$-scheme.
Thank you very much for your time and effort with this noobie.