You can edit two point layer one containing SVG maker positions and the other containing points on the line (danger points).
Points that you want connect each other must have an attribute with the same name, in the example both the feature have an attribute named 'desc'
after you have to duplicate marker point layer and set the simbol as Geometry generation instead SVG. Then apply this formula:
make_line(
make_point($x,$y),
make_point(
x(geometry(get_feature( 'point_online', 'desc' , "desc" ))),
y(geometry(get_feature( 'point_online', 'desc' , "desc" )))
)
)
formula connect marker geometry to the point_online geometry join feature by same desc attribute
OTHER SOLUTION WITH ONE LAYER
You can use the same logic with one layer that have both marker SVG point and both online danger points.
Table must have an attribute that you can use for join the two point, in my example is the attribute 'desc'. Marker point have value 'A', danger point related to it, have value '2A'.
As Stile you can use a rule based stile and using attribute 'connected point' to decide if use SVG or hide the on line symbol.
Now you can duplicate the layer and apply Geomtry generation as stile:
make_line(
make_point($x,$y),
make_point(
x(geometry(get_feature( 'marker point', 'desc' , 2||"desc" ))),
y(geometry(get_feature( 'marker point', 'desc' , 2||"desc" )))
)
)