If I delegate goal plan approval, will the delegated manager be able to view the other details such as compensation information of the employee?

No, when you delegate approval for a goal plan, the delegated manager gets access only to approve the goals in the goal plan. They can’t see other details of the employee.

Access to other data will depend on the security profiles added to the role that the manager has.