Let $X$ be a compact metric space and $f \colon X \to X$ be continuous and onto. If every closed, invariant proper subset of $X$ has empty interior, then show that $f$ is topologically transitive.
My attempt:
Suppose $f$ is not topologically transitive. Then there exist non-empty open sets $U$ and $V$ such that $$f^n(U)\cap V=\emptyset\tag{1}$$ for all $n \in \mathbb{N}.$ Let $$G=\bigcup_{n \in \mathbb N}f^n(U)$$ and $$C=\overline{G}$$
Then $C$ is closed, proper(by $(1)$) and invariant. Then by given condition, $$C^{\mathrm{o}}=\emptyset$$
I'm not able to get proceed from here. Any hints?