The anisotropic Bernstein problem