Downgrade to MariaDB 10.4

Hello and good morning to all.
I have a server with Hestia 1.5.13 and I need --for compatibility reasons, to downgrade to MariaDB v.10.4.
The question is: Can I do the downgrade without creating compatibility problems with Hestia 1.5.13?

I look forward to your comments and suggestions.
Thanks,

Yes

backup all databases…

apt remove mariadb-client mariadb-common mariadb-server
apt purge mariadb-client mariadb-common mariadb-server

Modify /etc/apt/sources.list.d/mariadb.list

apt install mariadb-client mariadb-common mariadb-server

Run:

If you need phpmyadmin / roundcube make sure to add the database / users again

OK, thanks @Eris !!

it’s not working to remove old software.