ABSTRACT Strongly magnetized neutron stars are popular candidates for producing detectable electromagnetic and gravitational-wave signals. Gravitational collapses of neutron stars triggered by a phase transition from hadrons to deconfined quarks in the cores could also release a considerable amount of energy in the form of gravitational waves and neutrinos. Hence, the formation of a magnetized hybrid star from such a phase-transition-induced collapse is an interesting scenario for detecting all these signals. These detections may provide essential probes for the magnetic field and composition of such stars. Thus far, a dynamical study of the formation of a magnetized hybrid star from a phase-transition-induced collapse has yet to be realized. Here, we investigate the formation of a magnetized hybrid star with a purely toroidal field and its properties through dynamical simulations. We find that the maximum values of rest-mass density and magnetic field strength increase slightly and these two quantities are coupled in phase during the formation. We then demonstrate that all microscopic and macroscopic quantities of the resulting hybrid star vary drastically when the maximum magnetic field strength goes beyond a threshold of $\sim 5 \times 10^{17}$ G, but they are insensitive to the magnetic field below this threshold. Specifically, the magnetic deformation makes the rest-mass density drop significantly, suppressing the matter fraction in the mixed phase. These behaviours agree with those in the equilibrium models of previous studies. Therefore, this work provides a solid support for the magnetic effects on a hybrid star.