Dynamic open other screen with firebase

I need to show to the user that new update is available how can I do that but one thing without update users should not allowed to use app

by this method you can do it.

but this will work in apk. you cannot test it in companion. because in companion it will return the verdion code of kodular companion.

How can I update dynamic