Magento 2 after install shows blank page

Please below instruction hope it will resolve.
Just got to vendor/magento/framework/View/Element/Template/File/validation.php
And go to line 138 lines

Replace

 $realPath = $this->fileDriver->getRealPath($path);
foreach ($directories as $directory) {

if (0 === strpos($realPath, $directory)) {
return true;
}
}

With

 $realPath = $this->fileDriver->getRealPath($path);
foreach ($directories as $directory) {

$directory = $this->fileDriver->getRealPath($path);
if (0 === strpos($realPath, $directory)) {
return true;
}
}