Using data samples collected with the BESIII detector operating at the BEPCII storage ring at center-of-mass energies from 4.178 to 4.600 GeV, we study the process e+e−→π0X(3872)γ and search for Zc(4020)0→X(3872)γ. We find no significant signal and set upper limits on σ(e+e−→π0X(3872)γ)⋅B(X(3872)→π+π−J/ψ) and σ(e+e−→π0Zc(4020)0)⋅B(Zc(4020)0→X(3872)γ)⋅B(X(3872)→π+π−J/ψ) for each energy point at 90% confidence level, which is of the order of several tenths pb.