When I change a site to HTTPS and when I go to a Wordpress

When I change a site to HTTPS and when I go to a Wordpress page I get the PHP page content to see.

When entering a non wordpress HTML file it is working good in HTTPS.

I don't know what is wrong.