Stability of degenerate heat equation in non-cylindrical/cylindrical domain