L298N gives digital 1 and zero while the servo motor drive on the PWM signal so technically it’s hard o do. But you can try hardware to hack here open the servo and disconnect the servo motor PWM driver circuit and then connect the servo motor terminals directly to L298N motor output