We consider the linear wave equation with the time-dependent scale-invariant damping and mass. We also treat the corresponding equation with the energy critical nonlinearity. Our aim is to show that the solution scatters to a modified linear wave solution and to obtain its asymptotic order.