What do to if you notice when opening Magento admin or frontend that page is empty … also when moving around subpages
Something similar like this

- Go to Magento installation root folder.
- Then lib->internal->Magento->Framework->View->Element->Template->File->Validator.php
- Go to line number 140 and replace the below code
From
If(0 === strpos($realPath, $directory)) {
return true;
}Code language: PHP (php)
To
$realDirectory = $this->fileDriver->getRealPath($directory);
if ($realDirectory && 0 === strpos($realPath, $realDirectory)) {
return true;
}Code language: PHP (php)
Then reload the page admin and frontend issue will resolved.