Given a function with nice properties, e.g. $f \in \mathcal{C}^k([a,b])$, are there any guarantees, i.e. upper bounds, on the $L^2$ error
\begin{equation} min_{g \in \Pi_n} \|f-g\|_{L^2} \end{equation}
for the optimal approximation with a polynomial of fixed degree $n$? If there are no such guarantees, is there a result that proves the existence of functions with arbitrarily bad approximations?
I am aware of the theorem by Bernstein which establishes the existence of arbitrarily bad functions to approximate with regards to the $L^{\infty}$ norm.