Show conditional elements?

Context:

I am designing an application with different login options. In the settings of the application, you can turn on/off each of the logins options. 50% of the logins options require additional input fields for configuration. The layout of the settings page is vertical.

The problem: When the option is turned off, should I display to user disabled input fields? In this case, the vertical scroll becomes too long. Is it user-friendly, to show input fields only when option in turned on?