samsung – Run apps in background locked screen

How can I run google chrome or samsung internet in background always when the screens locked? i use a site that automatically refreshes itself and sends notifications from time to time, it works when im on the phone and the browsers are in the background but not when the phone is locked

ive got several samsungs and tablets so its not a specific android model