How to properly migrate a project from version 7.XX to version 8.XX?

Hello everybody!
Sorry if there is already a similar topic. I didn’t find her.
I have quite a working project with LVGL version 7.XX. I decided to transfer the project to version 8.XX.
A lot of difficulties and questions arose.
Here I will post code fragments of the project that I could not transfer correctly to version 8.XX.
I hope very much for your help.
So snippet #1:

void print_info(const char *info)
{
	if ((MainConfig->lcd_type == LCD_NONE))
		return;
	lv_refr_now(NULL);
	lv_obj_t *cont = lv_cont_create(lv_scr_act(), NULL);
	lv_obj_set_auto_realign(cont, true);
	lv_obj_align_origo(cont, NULL, LV_ALIGN_IN_TOP_MID, 0, 25);
	lv_cont_set_fit(cont, LV_FIT_TIGHT);
	lv_cont_set_layout(cont, LV_LAYOUT_COLUMN_MID);

	lv_obj_t *label = lv_label_create(cont, NULL);
	lv_label_set_text(label, info);
	lv_refr_now(NULL);
	lv_obj_del(cont);
}

Here are my pathetic attempts to tidy up the function. But nothing works.

void print_info(const char *info)
{
	if ((MainConfig->lcd_type == LCD_NONE))
		return;
	lv_refr_now(NULL);
	lv_obj_t *cont = lv_obj_create(lv_scr_act());
	// lv_obj_set_auto_realign(cont, true);
	// lv_obj_align_origo(cont, NULL, LV_ALIGN_IN_TOP_MID, 0, 25);
	// lv_cont_set_fit(cont, LV_FIT_TIGHT);
	lv_obj_set_layout(cont, LV_LAYOUT_GRID);

	lv_obj_set_style_text_align(cont, LV_ALIGN_TOP_MID, 0);
	lv_obj_align(cont, LV_ALIGN_CENTER, 0, -40);


	lv_obj_t *label = lv_label_create(cont);
	lv_label_set_text(label, info);
	lv_refr_now(NULL);
	lv_obj_del(cont);
}

I commented out the lines that were in version 7, but I could not find analogues in version 8.
If all goes well, I’ll post a few snippets.