Sierpiński and Schinzel proved ${\displaystyle \left\{{\frac{\varphi(n)}{n}},\;\;n\in\mathbb{N}\right\}}$ is dense in the interval $(0,1)$ where $n$ is a natural number and $\varphi(n)$ is Euler's totient function. https://en.wikipedia.org/wiki/Euler's_totient_function#Ratio_of_consecutive_values
Is the set still dense in the same interval with the added restriction ${\displaystyle \left\{{\frac{\varphi(n)}{n}},\;\;n\notin\mathbb{P}\right\}}$ where $\mathbb{P}$ denotes the set of prime numbers?
Yes. Note that $$\left\{{\frac{\varphi(n)}{n}},n\in\mathbb{N}\right\} = \left\{{\frac{\varphi(n)}{n}},n\in\Bbb{N} \setminus \mathbb{P}\right\} \cup \left\{\frac{n-1}{n} : n \in \Bbb{P}\right\}.$$ The latter set admits only a single accumulation point: $1$. So, if we take a sequence from $\{\varphi(n)/n : n \in \Bbb{N}\}$ that converges to $x \in (0, 1)$, then only finitely many sequence terms can belong to $\{(n-1)/n : n \in \Bbb{P}\}$, so the (infinite) tail of the sequence must belong to $\{\varphi(n)/n : n \in \Bbb{N} \setminus \Bbb{P}\}.$