There are two way to get what you want.
First one :
Create two style for your layer, one for editing (with both symbology layer) and one with only symbology layer 1 for the composer (see QGIS docs for creating several style on the same layer).
Then create two different map theme, one for editing and one for print composer (set the appropriate symbology on each theme).
Then in the print composer set the map element to follow the right theme (it's in map element properties>Layers>Follow map theme)
You can know have the canvas where you edit set to the editing theme with the editing symbology while the print composer will use the print theme with the appropriate symbology, you can even modify/create the editing theme to have a totally different map (different basemap, add references layer usefull for editing...) without impacting the print output.

Second one :
Set an expression to the symbology layer 2 to hide it in composer.
To do so select the symbology layer 2 in the layer styling window and use the data defined override of the "Enable symbol layer" checkbox (it's at the bottom of the window, under the symbol selection) with an expression that will hide the layer in the context of the print composer. For a map element called "Map1" you may use this expression :
CASE
WHEN @map_id = 'Map1' THEN 0
ELSE 1
END
