On the modifications of classical orthogonal polynomials: The symmetric case