Lets assume that I start with the following action:
$$ {\mathcal L}_1 = \frac{1}{2} \sqrt{-g} \left( \partial_\mu \phi \partial^\mu \phi - m^2 \phi \right) $$
where $g_{\mu \nu}$ is a FRW metric and $\phi$ a scalar field.
In addition assume that for 'whatever' reason there is a deviation of the above Lagrangian such that an arbitrary potential $V(\phi)$ is introduced so that $$ {\mathcal L}_2 = \frac{1}{2} \sqrt{-g} \left( \partial_\mu \phi \partial^\mu \phi - m^2 \phi + V(\phi)\right). $$
Surely, having already a matter field interact with gravity should produce a backreaction so that the initial metric $g_{\mu\nu} \rightarrow \tilde g_{\mu \nu}$ while the introduction of the interacting terms will further aid this process.
My question is how can I calculate the above backreaction. In particular, I know that I need to compute the eom's of the field and the Einstein equations and solve the system of differential equations, but I can't figure out whether I should calculate the eom's while taking into account the initial metric or not.
So for example, the eom's would be equal to: $$ \frac{\delta {\mathcal L}_2}{\delta \phi} \Bigg|_{g_{\mu \nu}} = 0 \quad or \quad \frac{\delta {\mathcal L}_2}{\delta \phi} \Bigg|_{\tilde g_{\mu \nu}} = 0 ??? $$
If the latter is true, than I should first compute the new metric $g'_{\mu \nu}$ via the Einstein equation $\delta G_{\mu \nu} \propto \delta T_{\mu \nu}$ and then plug it in above?
However, the Einstein equation contain $\phi$ as well making the problem a cyclic process. In my mind it is sort of a chicken vs egg kind of problem where one should assume that the introduction of matter at the initial geometry forces the latter to change. With that in mind I could argue that the eom with $g$ should have the correct physical interpretation. What are your thoughts? What am I missing?