In electromagnetic theory, we define electromagnetic waves as two fluctuating electric and magnetic field which travel in a direction. We have a property called Poynting vector which is the power per unit area and it's written: $$\vec{S} = \frac{1}{\mu_0} \vec{E} \times \vec{B} $$ With some calculation we can write: $S = \frac{1}{2 \mu_0 c} E_0^2$ which here $S$ is the average power.
But we know that the energy of photons is $I=N(hf)$ where N is number of photons per unit area per time. So when we change the frequency, the energy and intensity will change.
But it seems power flux calculated from Poynting vector is frequency independent. Where is the problem? I don't really know the relation between these two approaches (wave and particle)