How to dynamically change spots of text in custom page?

As @Luccas said himself, adding meta boxes for separate areas of content are a good way of tackling this problem. This can be achieved using add_meta_box().

Although there are a number helpful plugins and libraries for handling meta box registration such as ACF and CMB2, plugin recommendations are off topic here at WordPress StackExchange.