there are many local development applications such as XAMP, MAMP ( mac ), Laravel etc that allow you to develop locally and push to a live site. Each one has its own configuration requirements and some knowledge to setup.
Or there are services provided by specific hosts – like Local by Flywheel.
Which allows you to push to their servers or open an NGROK tunnel to provide external links to your local site.
Or you can use the migrator/duplicator tools to take a copy and add it your live site.