Phonon-induced topological transition to a type-II Weyl semimetal