Effect of thermal phenomena on a second-order phase transition in the Landau-Ginzburg model