In this paper, we find necessary and sufficient conditions under which a spherically symmetric metric with isotropic S-curvature or isotropic E-curvature is invariant under conformal transformations. As an application, we solve one of the open problems presented by Shen and find a class of metrics of isotropic E-curvature which is not of isotropic S-curvature.