When I press the power button on my device, the display is locked and turns off immediately.
Could it be that you have activated the always-on display? If so, you can deactivate it under Settings> Display> Lock screen> Always show time and info.
[deleted] suggestion does not refer to the behavior when pressing the power button but screen behavior when inactive. This can be adjusted via Settings> Display> Screen timeout.