Sidebar: Ways to Edit Widgets in WP


I have this sidebar and a bunch of widgets with links and <hr> divider lines.
The goal is to remove some link groups from some pages, as well to remove extra <hr> lines.

Sometimes a page would not have any widgets associated with it (Customize > Widgets on that page).
But the link groups and extra divider lines are still there.

How do i remove them? Do I need to check what’s in those php loops, or maybe functions.php?

I have tried assigning widgets to different pages, and removing extra widgets, but those lines and links are still there. Does this mean I hove to look at the code or there a way doin g doing in through WP Admin Dashboard?

Example: please see image – the extra line is in the right top sidebar

Any ideas?