Study of the dynamical approach to the interface localization–delocalization transition of the confined Ising model