I've got a site in SSL but when I visit the Control panel it is completely unstyled and looking in the inspector I see a mixed content error and js/css is being blocked.
Not sure why this is happening, but in case it's relevant am using FocusLab Master Config for EE3
**** UPDATE *****
I added this to config.prod.php and no change
$env_config['cp_url'] = 'https://www.domain.com/admin.php';
**** UPDATE 2 ****
This is in response to @jrothafer about the config settings. Here is the relevant code from config.master.php
$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://';
$base_url = $protocol . $_SERVER['HTTP_HOST'];
$base_path = $_SERVER['DOCUMENT_ROOT'];