Consider the real algebraic line bundle $\mathcal{O}(-1)$ over the real algebraic variety $\mathbb{R}\mathbb{P}^1$. It is nontrivial hence continuously isomorphic to the "Moebius" line bundle (there are only 2 line bundles on the circle, up to continuous isomorphism), so its total space is homeomorphic o the "Moebius strip".

By the way, it is false that line bundles on affine algebraic varieties are trivial. One example is the above universal line bundle over $\mathbb{R}\mathbb{P}^1$. If you want an example over $\mathbb{C}$, consider the complement of a point in an elliptic curve: it's an affine variety but its Picard group is far from being trivial.