@app.route('/path', methods=['GET', 'POST'])
def page():
visible = 'none'
# to make the section hide or
visible = 'true'
# to be displayed
# then you can choose wheter or not show it, just changing the value of "visible"
return render_template('template.html', visible=visible)