Fix phone mode detection in toolbar module