Lots of home treadmills include adjustable slope settings
https://hometreadmills.ukijbf406.greyhavendaily.com/posts/15-reasons-not-to-be-ignoring-treadmills
Many home treadmills include adjustable incline settings, allowing you to mimic outdoor surface for stronger legs and much better workout variety, whether you're training for hills or burning more calories.