Use a specific template for password protected posts.
With this package, you can add a password-protected.php template file to your WordPress theme. If you want password templates specific to a post type, use password-protected-$posttype.php.
You can install the package through Composer:
composer require mindkomm/theme-password-protected