We have a simply connected space $X$ and the mapping torus $M_f \cong (X \times [0,1])/p $ where $p$ identifies $(x,0)$ with $(f(x), 1)$. For example: how do we compute the fundamental group of $X \times [0, \frac{1}{2}]$ under the image? if $f(X)$ is again simply connected then the fundamental is clearly trivial, but this may not be the case.
Now since $M_f$ is path connected, we consider w.l.o.g the basepoint $x_0 = p(x,1/2) \in M_f$ where $x \in X$.
My plan was to consider $X_1, X_2$ the images of $X \times [0, \frac{1}{2} + \epsilon], X \times [\frac{1}{2}, 1] \cup C$ under $M_f$ respectively, where $C$ denotes a circle basically connecting $p(x,0)$ and $p(x, 1/2)$, hence $X_0 = X_1 \cap X_2$ is again connected and $x_0 \in X_0$.
So we use Seifert-van-Kampen and get the following diagram:
$$\require{AMScd} \begin{CD} \pi_1(X_0, x_0) @>{}>> \pi_1(X_1, x_0)\\ @V{}VV @VV{}V\\ \pi_1(X_2, x_0) @>>{}> \pi_1(X, x0)\end{CD}$$
Now we only have to calculate the respective fundamental groups, but I don't know how to proceed. Any feedback would be appreciated, I've tried looking for similar questions on the website: Details for calculating the fundamental group of mapping torus and Fundamental group of mapping torus?. But they seem to be either skipping this detail or using some complicated tools that are not readily available for me yet.