I know that the boundary circle of a Möbius strip is actually formed by the horizontal sides of $[0 ,1] \times [0,1]$.If we identify all the points of the 1st horizontal side to a single point and do the same for the second horizontal side we get a disc with the antipodal points identified to itself(which is $\mathbb{RP}^2$).
However I am not sure of how to write it down rigorously.
$\require{AMScd}$ \begin{CD} Mobius strip @>i(x)>> [0,1] \times[0,1] @>g(x)>> D @>f(x)>> D/\sim_1\\ @VV\pi(x) = cl(x)V \\ Mobius Strip / \sim \\ \end{CD} where $\sim$ denotes identifying the boundary cirlce of a Mobius strip and $\sim_1$ denotes identifying the opposite points of the disc.
I am not sure of what $g(x)$ is ? or the fact that mobius strip will be compact or the composition of $f \circ g \circ i(x)$ will be onto?
Any other method will be appreciated but I wanted to know whether the mobius strip is compact?