please i a am having an issue, i am trying to remove some div tags based on login role in php and javascript

it is working but once i reload the page it shows the div tag i removed in less than a sec, i should have used display:none but any user can go to inspect element and change the the display to block

here is my code

//if ($row['login_type'] == 'Advertiser'){
        <script src=""></script>
     $(document).ready(function() {
     $(window).on("load", function() {
<?php }?>