Yes, that's the problem here.
2 ways:
1) use a plugin like WP-staging, free does staging, paid does staging + push to live
2) use your host staging solution to push to live (free if offered like some Siteground plan or A2hosting).
If you decide to do so despite the warning I talked about...