If $\Omega$ is open and bounded then any constant function is trivially in $H^1(\Omega)$. By definition, $H^1_0(\Omega)$ is the closure of $C_c^{\infty}(\Omega)$ with respect to the $H^1$-norm, so let's prove that $f(x) = 1$ cannot be approximated by compactly supported function.
The idea is that in every compact subset of $\Omega$ we want our approximating sequence to be close to $1,$ but to enforce the fact the sequence has to be in $C_c^{\infty}$ we'll end up paying a lot on the gradient to drop quickly from $1$ to $0$ near the boundary of $\Omega$.
For simplicity, I'll work out the details for the case $N = 1$, $\Omega = (0,1)$, but the same technique can be applied for the general setting in which you phrased the question.
Let $\{\phi_n\} \subset C^{\infty}_c(0,1)$, let $\epsilon > 0$ be given and assume by contradiction that $\|\phi_n - 1\|_{H^1} \le \epsilon$. Then in particular $\|\phi_n - 1\|_{L^2} \le \epsilon$, and if we let $A_n = \{x : \phi_n(x) \ge \frac 12\}$ we have that
$$1 - \mathcal{L}^1(A_n) = \mathcal{L}^1(A_n^c)= \int_{A_n^c}2\cdot \frac 12dx \le \int_{A_n^c} 2 |1 - \phi_n|\le 2\epsilon.$$ This shows that $$\mathcal{L}^1(A_n) \ge 1 - 2\epsilon.$$
Let $y \in (0,3\epsilon)$ be such that $\phi_n(y) \ge \frac 12$ (the existence of such a $y$ is guaranteed by the estimate above). Then, by the Fundamental Theorem of Calculus and the Cauchy-Schwartz inequality, we have \begin{align}
\frac 12 \le &\ \phi_n(y) - \phi_n(0) \le \int_0^{3\epsilon}|\phi_n'(x)|\,dx \le \sqrt{3\epsilon}\int_0^1|\phi'(x)|^2\,dx \\
= &\ \sqrt{3\epsilon}\|\nabla(\phi_n - 1)\|_{L^2} \le \sqrt{3\epsilon}\|\phi_n - 1\|_{H^1} \\
\le &\ \sqrt{3}\epsilon^{3/2}.
\end{align}
This gives a contradiction for $\epsilon$ small enough.