Please consider the following MWE:
\documentclass{beamer}
\usetheme{Copenhagen}
\begin{document}
\begin{frame}
\begin{block}{}
Text.
\begin{align}
A&=B\
\only<2>{
&\color{red}{C=D+1-5M\implies E=1}\
}
\uncover<3->{&=C\}
\uncover<4->{&=B}
\end{align}
\end{block}
\end{frame}
\end{document}
The problem is on slide 2, where A=B is not in the same position as in slides 1, 3 and 5:
I want the red because is a note for a property that I will use in the next step, however it is the only slide that is not aligned with respect to the others.
I would like to have the following output (see slide 2.):
How can we achieve the last image not using commands like \hspace?



\[...\]after the alignment? (since you don't want it aligned) – David Carlisle Mar 04 '21 at 20:58A=Bof slide 2 aligned with the rest of lines (=Cand=B). Also, the red part should be aligned to the middle. – manooooh Mar 04 '21 at 21:18alignjust make it a\[..\[– David Carlisle Mar 04 '21 at 21:27aligninto two like this?: https://imgur.com/a/WVsYj3C It creates a lot of space around and the black lines are not aligned w.r.t.=. – manooooh Mar 04 '21 at 21:32