This paper analyzes the thermoelastic dynamic behavior of simply supported viscoelastic nanobeams of fractional derivative type due to a dynamic strength load. The viscoelastic Kelvin–Voigt model with fractional derivative with Bernoulli–Euler beam theory is introduced. The generalized thermoelastic heat conduction model with a two-phase lag is also used. It is assumed that the beam is rotating at a uniform angular velocity and that the thermal conductivity varies linearly depending on the temperature. Due to a variable harmonic heat and retreating time-dependent load, the nanobeam is excited. The Laplace integral transformation technique is used as the solution method. The thermodynamic temperature, deflection function, bending moment, and displacement are numerically calculated. Results of fractional and integer viscoelastic material models are compared. In the studied system, the effect of the nonlocal parameter, viscosity and varying load on the solutions is shown, and the temperature-dependence of the thermal conductivity is analyzed.