On our school trip, we visited to a science museum.
On our school trip, we visited a science museum.
When visit is a verb, put the person or place directly after it: ‘visit a museum’, ‘visit my cousins’. Do not add to.
The noun is different: ‘a visit to a museum’.