Generalized Brans-Dicke theories in light of evolving dark energy