Is it recommended to use expressions in CSS for page layout in PHP, considering browser compatibility issues?

When using CSS for page layout in PHP, it is generally recommended to avoid using expressions as they are not supported by all browsers and can lead to compatibility issues. Instead, it is better to use standard CSS properties and values to achieve the desired layout.

<!DOCTYPE html>
<html>
<head>
    <style>
        .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Hello, World!</h1>
    </div>
</body>
</html>