<style>
#mobile-block-one {
position: relative;
z-index:10;
}
</style>
<div id="mobile-one">
<div id="mobile-block-one">A<div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script>
jQuery(document).ready(function($){
$('#mobile-one').on('click',function(){
var el = $('#mobile-block-one');
if(el.attr('data-click-state') == 1) {
el.attr('data-click-state', 0)
el.css('z-index', +el.css('z-index') + 1)
} else {
el.attr('data-click-state', 1)
el.css('z-index', +el.css('z-index') - 3)
}
});
});
</script>